From 301ea643847cc15c4be73bd82541b60dea280202 Mon Sep 17 00:00:00 2001 From: kbengine Date: Sat, 24 Oct 2015 20:01:31 +0800 Subject: [PATCH] up --- KBEngine.cs | 8 ++++---- NetworkInterface.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/KBEngine.cs b/KBEngine.cs index c56879d..503ff0b 100644 --- a/KBEngine.cs +++ b/KBEngine.cs @@ -521,7 +521,7 @@ private void onLogin_loginapp() bundle.newMessage(Message.messages["Loginapp_importClientMessages"]); bundle.send(_networkInterface); Dbg.DEBUG_MSG("KBEngine::onLogin_loginapp: send importClientMessages ..."); - Event.fireAll("Loginapp_importClientMessages", new object[]{}); + Event.fireOut("Loginapp_importClientMessages", new object[]{}); } else { @@ -536,7 +536,7 @@ public void login_baseapp(bool noconnect) { if(noconnect) { - Event.fireAll("onLoginBaseapp", new object[]{}); + Event.fireOut("onLoginBaseapp", new object[]{}); _networkInterface.reset(); _networkInterface = new NetworkInterface(); @@ -576,7 +576,7 @@ private void onLogin_baseapp() bundle.newMessage(Message.messages["Baseapp_importClientMessages"]); bundle.send(_networkInterface); Dbg.DEBUG_MSG("KBEngine::onLogin_baseapp: send importClientMessages ..."); - Event.fireAll("Baseapp_importClientMessages", new object[]{}); + Event.fireOut("Baseapp_importClientMessages", new object[]{}); } else { @@ -701,7 +701,7 @@ private void onImportClientMessagesCompleted() Bundle bundle = new Bundle(); bundle.newMessage(Message.messages["Baseapp_importClientEntityDef"]); bundle.send(_networkInterface); - Event.fireAll("Baseapp_importClientEntityDef", new object[]{}); + Event.fireOut("Baseapp_importClientEntityDef", new object[]{}); } else { diff --git a/NetworkInterface.cs b/NetworkInterface.cs index 2fb5e18..c01fa4f 100644 --- a/NetworkInterface.cs +++ b/NetworkInterface.cs @@ -85,7 +85,7 @@ public void _onConnectStatus(ConnectState state) Dbg.ERROR_MSG(string.Format("NetworkInterface::_onConnectStatus(), connect is error! ip: {0}:{1}, err: {2}", state.connectIP, state.connectPort, state.error)); } - Event.fireAll("onConnectStatus", new object[]{success}); + Event.fireOut("onConnectStatus", new object[]{success}); if (state.connectCB != null) state.connectCB(state.connectIP, state.connectPort, success, state.userData);