File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Plugins/kbengine_ue4_plugins
Source/KBEnginePlugins/Engine Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ KBE-Plugin fire-out events(KBE => UE4):
209209
210210 Event-datas:
211211 uint16: retcode
212+ bytes: serverdatas
212213 http://kbengine.github.io/docs/configuration/server_errors.html
213214
214215 onLoginBaseappFailed
Original file line number Diff line number Diff line change @@ -462,7 +462,6 @@ void KBEngineApp::updatePlayerToServer()
462462 pBundle->send (pNetworkInterface_);
463463 }
464464 }
465-
466465}
467466
468467void KBEngineApp::Client_onAppActiveTickCB ()
@@ -728,6 +727,7 @@ void KBEngineApp::Client_onLoginFailed(MemoryStream& stream)
728727 UKBEventData_onLoginFailed* pEventData = NewObject<UKBEventData_onLoginFailed>();
729728 pEventData->failedcode = failedcode;
730729 pEventData->errorStr = serverErr (failedcode);
730+ pEventData->serverdatas = serverdatas_;
731731 KBENGINE_EVENT_FIRE (KBEventTypes::onLoginFailed, pEventData);
732732}
733733
Original file line number Diff line number Diff line change @@ -171,6 +171,9 @@ class KBENGINEPLUGINS_API UKBEventData_onLoginFailed : public UKBEventData
171171
172172 UPROPERTY (EditAnywhere, BlueprintReadWrite, Category = KBEngine)
173173 FString errorStr;
174+
175+ UPROPERTY (EditAnywhere, BlueprintReadWrite, Category = KBEngine)
176+ TArray<uint8> serverdatas;
174177};
175178
176179UCLASS (Blueprintable, BlueprintType)
You can’t perform that action at this time.
0 commit comments