From d4f2d81dc51a9fe3a6d0b12d16ba073ac33c39be Mon Sep 17 00:00:00 2001 From: kebiao <380000937@qq.com> Date: Fri, 15 Feb 2019 17:48:52 +0800 Subject: [PATCH] up --- .../kbengine_unity3d_plugins/AccountBase.cs | 11 +- .../kbengine_unity3d_plugins/AvatarBase.cs | 11 +- .../kbengine_unity3d_plugins/Bundle.cs | 27 +- .../kbengine_unity3d_plugins/GateBase.cs | 11 +- .../kbengine_unity3d_plugins/KBEMain.cs | 21 + .../kbengine_unity3d_plugins/KBEngine.cs | 722 ++++++++++++------ .../kbengine_unity3d_plugins/Messages.cs | 649 +++++++++++++--- .../kbengine_unity3d_plugins/MonsterBase.cs | 11 +- .../kbengine_unity3d_plugins/NPCBase.cs | 11 +- .../kbengine_unity3d_plugins/SpaceBase.cs | 11 +- .../SpaceDuplicateBase.cs | 11 +- .../kbengine_unity3d_plugins/SpacesBase.cs | 11 +- .../SpawnPointBase.cs | 11 +- 13 files changed, 1174 insertions(+), 344 deletions(-) diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AccountBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AccountBase.cs index a5b406e6..d2de8757 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AccountBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AccountBase.cs @@ -70,14 +70,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AvatarBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AvatarBase.cs index 23b9d16c..9f0edac9 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AvatarBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/AvatarBase.cs @@ -155,14 +155,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Bundle.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Bundle.cs index 7eb79b3b..711e88c6 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Bundle.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Bundle.cs @@ -25,8 +25,20 @@ public Bundle() public void clear() { - stream = MemoryStream.createObject(); - streamList = new List(); + // 把不用的MemoryStream放回缓冲池,以减少垃圾回收的消耗 + for (int i = 0; i < streamList.Count; ++i) + { + if (stream != streamList[i]) + streamList[i].reclaimObject(); + } + + streamList.Clear(); + + if(stream != null) + stream.clear(); + else + stream = MemoryStream.createObject(); + numMessage = 0; messageLength = 0; msgtype = null; @@ -110,21 +122,12 @@ public void send(NetworkInterfaceBase networkInterface) Dbg.ERROR_MSG("Bundle::send: networkInterface invalid!"); } - // 把不用的MemoryStream放回缓冲池,以减少垃圾回收的消耗 - for (int i = 0; i < streamList.Count; ++i) - { - streamList[i].reclaimObject(); - } - - streamList.Clear(); - stream.clear(); - // 我们认为,发送完成,就视为这个bundle不再使用了, // 所以我们会把它放回对象池,以减少垃圾回收带来的消耗, // 如果需要继续使用,应该重新Bundle.createObject(), // 如果外面不重新createObject()而直接使用,就可能会出现莫名的问题, // 仅以此备注,警示使用者。 - Bundle.reclaimObject(this); + reclaimObject(); } public void checkStream(int v) diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/GateBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/GateBase.cs index 481a5883..ef926823 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/GateBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/GateBase.cs @@ -77,14 +77,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEMain.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEMain.cs index e44b5e9a..bdb44278 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEMain.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEMain.cs @@ -31,6 +31,8 @@ public class KBEMain : MonoBehaviour public bool isOnInitCallPropertysSetMethods = true; public bool forceDisableUDP = false; + public bool automaticallyUpdateSDK = true; + protected virtual void Awake() { DontDestroyOnLoad(transform.gameObject); @@ -46,8 +48,26 @@ protected virtual void Start () public virtual void installEvents() { + KBEngine.Event.registerOut(EventOutTypes.onVersionNotMatch, this, "onVersionNotMatch"); + KBEngine.Event.registerOut(EventOutTypes.onScriptVersionNotMatch, this, "onScriptVersionNotMatch"); } + public void onVersionNotMatch(string verInfo, string serVerInfo) + { +#if UNITY_EDITOR + if(automaticallyUpdateSDK) + gameObject.AddComponent(); +#endif + } + + public void onScriptVersionNotMatch(string verInfo, string serVerInfo) + { +#if UNITY_EDITOR + if(automaticallyUpdateSDK) + gameObject.AddComponent(); +#endif + } + public virtual void initKBEngine() { // 如果此处发生错误,请查看 Assets\Scripts\kbe_scripts\if_Entity_error_use______git_submodule_update_____kbengine_plugins_______open_this_file_and_I_will_tell_you.cs @@ -88,6 +108,7 @@ protected virtual void OnDestroy() KBEngineApp.app.destroy(); KBEngineApp.app = null; } + KBEngine.Event.clear(); MonoBehaviour.print("clientapp::OnDestroy(): end"); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs index a691ace7..a3025081 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs @@ -1,11 +1,11 @@ namespace KBEngine { - using UnityEngine; + using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Text; - using System.Threading; + using System.Threading; using System.Text.RegularExpressions; using MessageID = System.UInt16; @@ -26,12 +26,12 @@ public class KBEngineApp { public static KBEngineApp app = null; private NetworkInterfaceBase _networkInterface = null; - - KBEngineArgs _args = null; - - // 客户端的类别 - // http://www.kbengine.org/docs/programming/clientsdkprogramming.html - // http://www.kbengine.org/cn/docs/programming/clientsdkprogramming.html + + KBEngineArgs _args = null; + + // 客户端的类别 + // http://www.kbengine.org/docs/programming/clientsdkprogramming.html + // http://www.kbengine.org/cn/docs/programming/clientsdkprogramming.html public enum CLIENT_TYPE { // Mobile(Phone, Pad) @@ -56,18 +56,18 @@ public enum CLIENT_TYPE CLIENT_TYPE_MINI = 7, }; - //加密通信类型 - public enum NETWORK_ENCRYPT_TYPE - { - //无加密 - ENCRYPT_TYPE_NONE = 0, + //加密通信类型 + public enum NETWORK_ENCRYPT_TYPE + { + //无加密 + ENCRYPT_TYPE_NONE = 0, - //Blowfish - ENCRYPT_TYPE_BLOWFISH = 1, - }; + //Blowfish + ENCRYPT_TYPE_BLOWFISH = 1, + }; - public string username = "kbengine"; - public string password = "123456"; + public string username = "kbengine"; + public string password = "123456"; // 服务端分配的baseapp地址 public string baseappIP = ""; @@ -88,10 +88,10 @@ public enum NETWORK_ENCRYPT_TYPE // 服务端与客户端的版本号以及协议MD5 public string serverVersion = ""; - public string clientVersion = "2.3.4"; + public string clientVersion = "2.4.2"; public string serverScriptVersion = ""; public string clientScriptVersion = "0.1.0"; - public string serverProtocolMD5 = "15BB33A3346B4DBF182B132C85E37536"; + public string serverProtocolMD5 = "78D6E7A3B539900D86F0C2145E44AEB3"; public string serverEntitydefMD5 = "90AA620FCF194B85FBE7A8E4F4F8F938"; // 当前玩家的实体id与实体类别 @@ -124,22 +124,22 @@ public enum NETWORK_ENCRYPT_TYPE private System.DateTime _lastUpdateToServerTime = System.DateTime.Now; //上传玩家信息到服务器间隔,单位毫秒 - private float _updatePlayerToServerPeroid = 100.0f; + private float _updatePlayerToServerPeroid = 100.0f; private const int _1MS_TO_100NS = 10000; - //加密过滤器 - private EncryptionFilter _filter = null; + //加密过滤器 + private EncryptionFilter _filter = null; - // 玩家当前所在空间的id, 以及空间对应的资源 - public UInt32 spaceID = 0; + // 玩家当前所在空间的id, 以及空间对应的资源 + public UInt32 spaceID = 0; public string spaceResPath = ""; public bool isLoadedGeometry = false; // 按照标准,每个客户端部分都应该包含这个属性 public const string component = "client"; - public KBEngineApp(KBEngineArgs args) - { + public KBEngineApp(KBEngineArgs args) + { if (app != null) throw new Exception("Only one instance of KBEngineApp!"); @@ -147,7 +147,7 @@ public KBEngineApp(KBEngineArgs args) Event.outEventsImmediately = !args.isMultiThreads; initialize(args); - } + } public static KBEngineApp getSingleton() { @@ -166,12 +166,12 @@ public virtual bool initialize(KBEngineArgs args) EntityDef.init(); - initNetwork(); + initNetwork(); - // 注册事件 - installEvents(); + // 注册事件 + installEvents(); - return true; + return true; } void initNetwork() @@ -200,45 +200,45 @@ public KBEngineArgs getInitArgs() return _args; } - public virtual void destroy() - { - Dbg.WARNING_MSG("KBEngine::destroy()"); - + public virtual void destroy() + { + Dbg.WARNING_MSG("KBEngine::destroy()"); + if(currserver == "baseapp") logout(); - reset(); - KBEngine.Event.deregisterIn(this); - resetMessages(); - - KBEngineApp.app = null; - } - - public NetworkInterfaceBase networkInterface() - { - return _networkInterface; - } - - public byte[] serverdatas() - { - return _serverdatas; - } - - public void entityServerPos(Vector3 pos) - { - _entityServerPos = pos; - } - - public void resetMessages() - { + reset(); + KBEngine.Event.deregisterIn(this); + resetMessages(); + + KBEngineApp.app = null; + } + + public NetworkInterfaceBase networkInterface() + { + return _networkInterface; + } + + public byte[] serverdatas() + { + return _serverdatas; + } + + public void entityServerPos(Vector3 pos) + { + _entityServerPos = pos; + } + + public void resetMessages() + { _serverErrs.Clear(); Messages.clear(); EntityDef.reset(); Entity.clear(); Dbg.DEBUG_MSG("KBEngine::resetMessages()"); - } - + } + public virtual void reset() { KBEngine.Event.clearFiredEvents(); @@ -390,14 +390,14 @@ public void hello() _filter = null; - if (_args.networkEncryptType == NETWORK_ENCRYPT_TYPE.ENCRYPT_TYPE_BLOWFISH) - { - _filter = new BlowfishFilter(); - _encryptedKey = ((BlowfishFilter)_filter).key(); - _networkInterface.setFilter(null); - } + if (_args.networkEncryptType == NETWORK_ENCRYPT_TYPE.ENCRYPT_TYPE_BLOWFISH) + { + _filter = new BlowfishFilter(); + _encryptedKey = ((BlowfishFilter)_filter).key(); + _networkInterface.setFilter(null); + } - bundle.writeString(clientVersion); + bundle.writeString(clientVersion); bundle.writeString(clientScriptVersion); bundle.writeBlob(_encryptedKey); bundle.send(_networkInterface); @@ -439,11 +439,11 @@ public void Client_onHelloCB(MemoryStream stream) } } - if (_args.networkEncryptType == NETWORK_ENCRYPT_TYPE.ENCRYPT_TYPE_BLOWFISH) - { - _networkInterface.setFilter(_filter); + if (_args.networkEncryptType == NETWORK_ENCRYPT_TYPE.ENCRYPT_TYPE_BLOWFISH) + { + _networkInterface.setFilter(_filter); _filter = null; - } + } onServerDigest(); @@ -481,6 +481,23 @@ public void Client_onImportClientEntityDef(MemoryStream stream) // 无需实现,已由插件生成静态代码 } + public void Client_onImportClientSDK(MemoryStream stream) + { + int remainingFiles = 0; + remainingFiles = stream.readInt32(); + + string fileName; + fileName = stream.readString(); + + int fileSize = 0; + fileSize = stream.readInt32(); + + byte[] fileDatas = new byte[0]; + fileDatas = stream.readBlob(); + + Event.fireIn("onImportClientSDK", remainingFiles, fileName, fileSize, fileDatas); + } + /* 引擎版本不匹配 */ @@ -889,13 +906,13 @@ public void Client_onLoginSuccessfully(MemoryStream stream) baseappIP = stream.readString(); baseappTcpPort = stream.readUint16(); baseappUdpPort = stream.readUint16(); - _serverdatas = stream.readBlob(); + _serverdatas = stream.readBlob(); Dbg.DEBUG_MSG("KBEngine::Client_onLoginSuccessfully: accountName(" + accountName + "), addr(" + baseappIP + ":" + baseappTcpPort + "|" + baseappUdpPort + "), datas(" + _serverdatas.Length + ")!"); - login_baseapp(true); - } + login_baseapp(true); + } /* 登录baseapp失败了 @@ -1354,7 +1371,7 @@ public void updatePlayerToServer() TimeSpan span = now - _lastUpdateToServerTime; if (span.Ticks < _updatePlayerToServerPeroid * _1MS_TO_100NS) - return; + return; Entity playerEntity = player(); if (playerEntity == null || playerEntity.inWorld == false || playerEntity.isControlled) @@ -1488,7 +1505,7 @@ public void clearEntities(bool isall) if(dic.Value.inWorld) dic.Value.leaveWorld(); - dic.Value.destroy(); + dic.Value.destroy(); } entities.Clear(); @@ -1501,7 +1518,7 @@ public void clearEntities(bool isall) if(dic.Value.inWorld) dic.Value.leaveWorld(); - dic.Value.destroy(); + dic.Value.destroy(); } entities.Clear(); @@ -1689,258 +1706,532 @@ public void Client_onSetEntityPosAndDir(MemoryStream stream) public void Client_onUpdateData_ypr(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float y = stream.readFloat(); + float p = stream.readFloat(); + float r = stream.readFloat(); - SByte y = stream.readInt8(); - SByte p = stream.readInt8(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, p, r, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, p, r, -1, false); } public void Client_onUpdateData_yp(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float y = stream.readFloat(); + float p = stream.readFloat(); - SByte y = stream.readInt8(); - SByte p = stream.readInt8(); - - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, p, KBEMath.KBE_FLT_MAX, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, p, KBEMath.KBE_FLT_MAX, -1, false); } public void Client_onUpdateData_yr(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float y = stream.readFloat(); + float r = stream.readFloat(); - SByte y = stream.readInt8(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, KBEMath.KBE_FLT_MAX, r, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, KBEMath.KBE_FLT_MAX, r, -1, false); } public void Client_onUpdateData_pr(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float p = stream.readFloat(); + float r = stream.readFloat(); - SByte p = stream.readInt8(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, p, r, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, p, r, -1, false); } public void Client_onUpdateData_y(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float y = stream.readFloat(); - SByte y = stream.readInt8(); - - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, -1, false); } public void Client_onUpdateData_p(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - SByte p = stream.readInt8(); + float p = stream.readFloat(); - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, -1, false); } public void Client_onUpdateData_r(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float r = stream.readFloat(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, -1); + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, -1, false); } public void Client_onUpdateData_xz(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - - Vector2 xz = stream.readPackXZ(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 1); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 1, false); } public void Client_onUpdateData_xz_ypr(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float y = stream.readFloat(); + float p = stream.readFloat(); + float r = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - - SByte y = stream.readInt8(); - SByte p = stream.readInt8(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], y, p, r, 1); + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, y, p, r, 1, false); } public void Client_onUpdateData_xz_yp(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float y = stream.readFloat(); + float p = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - - SByte y = stream.readInt8(); - SByte p = stream.readInt8(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], y, p, KBEMath.KBE_FLT_MAX, 1); + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, y, p, KBEMath.KBE_FLT_MAX, 1, false); } public void Client_onUpdateData_xz_yr(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float y = stream.readFloat(); + float r = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - - SByte y = stream.readInt8(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], y, KBEMath.KBE_FLT_MAX, r, 1); + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, y, KBEMath.KBE_FLT_MAX, r, 1, false); } public void Client_onUpdateData_xz_pr(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float p = stream.readFloat(); + float r = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - - SByte p = stream.readInt8(); - SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, p, r, 1); + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, KBEMath.KBE_FLT_MAX, p, r, 1, false); } public void Client_onUpdateData_xz_y(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - Vector2 xz = stream.readPackXZ(); - SByte yaw = stream.readInt8(); - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], yaw, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 1); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float yaw = stream.readFloat(); + + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, yaw, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 1, false); } public void Client_onUpdateData_xz_p(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float p = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - - SByte p = stream.readInt8(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, 1); + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, 1, false); } public void Client_onUpdateData_xz_r(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float z = stream.readFloat(); + + float r = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - - SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, 1); + _updateVolatileData(eid, x, KBEMath.KBE_FLT_MAX, z, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, 1, false); } public void Client_onUpdateData_xyz(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + _updateVolatileData(eid, x, y, z, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 0, false); + } + + public void Client_onUpdateData_xyz_ypr(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float yaw = stream.readFloat(); + float p = stream.readFloat(); + float r = stream.readFloat(); - Vector2 xz = stream.readPackXZ(); - float y = stream.readPackY(); + _updateVolatileData(eid, x, y, z, yaw, p, r, 0, false); + } + + public void Client_onUpdateData_xyz_yp(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float yaw = stream.readFloat(); + float p = stream.readFloat(); + + _updateVolatileData(eid, x, y, z, yaw, p, KBEMath.KBE_FLT_MAX, 0, false); + } + + public void Client_onUpdateData_xyz_yr(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float yaw = stream.readFloat(); + float r = stream.readFloat(); - _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 0); + _updateVolatileData(eid, x, y, z, yaw, KBEMath.KBE_FLT_MAX, r, 0, false); } - public void Client_onUpdateData_xyz_ypr(MemoryStream stream) + public void Client_onUpdateData_xyz_pr(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float p = stream.readFloat(); + float r = stream.readFloat(); + + _updateVolatileData(eid, x, y, z, KBEMath.KBE_FLT_MAX, p, r, 0, false); + } + + public void Client_onUpdateData_xyz_y(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float yaw = stream.readFloat(); + + _updateVolatileData(eid, x, y, z, yaw, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 0, false); + } + + public void Client_onUpdateData_xyz_p(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float p = stream.readFloat(); + + _updateVolatileData(eid, x, y, z, KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, 0, false); + } + + public void Client_onUpdateData_xyz_r(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); + float x = stream.readFloat(); + float y = stream.readFloat(); + float z = stream.readFloat(); + + float r = stream.readFloat(); + + _updateVolatileData(eid, x, y, z, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, 0, false); + } + + public void Client_onUpdateData_ypr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte y = stream.readInt8(); + SByte p = stream.readInt8(); + SByte r = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, p, r, -1, true); + } + + public void Client_onUpdateData_yp_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte y = stream.readInt8(); + SByte p = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, p, KBEMath.KBE_FLT_MAX, -1, true); + } + + public void Client_onUpdateData_yr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte y = stream.readInt8(); + SByte r = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, KBEMath.KBE_FLT_MAX, r, -1, true); + } + + public void Client_onUpdateData_pr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte p = stream.readInt8(); + SByte r = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, p, r, -1, true); + } + + public void Client_onUpdateData_y_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte y = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, y, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, -1, true); + } + + public void Client_onUpdateData_p_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte p = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, -1, true); + } + + public void Client_onUpdateData_r_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + SByte r = stream.readInt8(); + + _updateVolatileData(eid, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, -1, true); + } + + public void Client_onUpdateData_xz_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 1, true); + } + + public void Client_onUpdateData_xz_ypr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + SByte y = stream.readInt8(); + SByte p = stream.readInt8(); + SByte r = stream.readInt8(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], y, p, r, 1, true); + } + + public void Client_onUpdateData_xz_yp_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + SByte y = stream.readInt8(); + SByte p = stream.readInt8(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], y, p, KBEMath.KBE_FLT_MAX, 1, true); + } + + public void Client_onUpdateData_xz_yr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + SByte y = stream.readInt8(); + SByte r = stream.readInt8(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], y, KBEMath.KBE_FLT_MAX, r, 1, true); + } + + public void Client_onUpdateData_xz_pr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + SByte p = stream.readInt8(); + SByte r = stream.readInt8(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, p, r, 1, true); + } + + public void Client_onUpdateData_xz_y_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + Vector2 xz = stream.readPackXZ(); + SByte yaw = stream.readInt8(); + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], yaw, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 1, true); + } + + public void Client_onUpdateData_xz_p_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + SByte p = stream.readInt8(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, 1, true); + } + + public void Client_onUpdateData_xz_r_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + + SByte r = stream.readInt8(); + + _updateVolatileData(eid, xz[0], KBEMath.KBE_FLT_MAX, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, 1, true); + } + + public void Client_onUpdateData_xyz_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + + _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 0, true); + } + + public void Client_onUpdateData_xyz_ypr_optimized(MemoryStream stream) + { + Int32 eid = getViewEntityIDFromStream(stream); + + Vector2 xz = stream.readPackXZ(); + float y = stream.readPackY(); + SByte yaw = stream.readInt8(); SByte p = stream.readInt8(); SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], y, xz[1], yaw, p, r, 0); + + _updateVolatileData(eid, xz[0], y, xz[1], yaw, p, r, 0, true); } - - public void Client_onUpdateData_xyz_yp(MemoryStream stream) + + public void Client_onUpdateData_xyz_yp_optimized(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + SByte yaw = stream.readInt8(); SByte p = stream.readInt8(); - _updateVolatileData(eid, xz[0], y, xz[1], yaw, p, KBEMath.KBE_FLT_MAX, 0); + _updateVolatileData(eid, xz[0], y, xz[1], yaw, p, KBEMath.KBE_FLT_MAX, 0, true); } - - public void Client_onUpdateData_xyz_yr(MemoryStream stream) + + public void Client_onUpdateData_xyz_yr_optimized(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + SByte yaw = stream.readInt8(); SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], y, xz[1], yaw, KBEMath.KBE_FLT_MAX, r, 0); + + _updateVolatileData(eid, xz[0], y, xz[1], yaw, KBEMath.KBE_FLT_MAX, r, 0, true); } - - public void Client_onUpdateData_xyz_pr(MemoryStream stream) + + public void Client_onUpdateData_xyz_pr_optimized(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + SByte p = stream.readInt8(); SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, p, r, 0); + + _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, p, r, 0, true); } - - public void Client_onUpdateData_xyz_y(MemoryStream stream) + + public void Client_onUpdateData_xyz_y_optimized(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + SByte yaw = stream.readInt8(); - _updateVolatileData(eid, xz[0], y, xz[1], yaw, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 0); + _updateVolatileData(eid, xz[0], y, xz[1], yaw, KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, 0, true); } - - public void Client_onUpdateData_xyz_p(MemoryStream stream) + + public void Client_onUpdateData_xyz_p_optimized(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + SByte p = stream.readInt8(); - - _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, 0); + + _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, p, KBEMath.KBE_FLT_MAX, 0, true); } - - public void Client_onUpdateData_xyz_r(MemoryStream stream) + + public void Client_onUpdateData_xyz_r_optimized(MemoryStream stream) { Int32 eid = getViewEntityIDFromStream(stream); - + Vector2 xz = stream.readPackXZ(); float y = stream.readPackY(); - + SByte r = stream.readInt8(); - - _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, 0); + + _updateVolatileData(eid, xz[0], y, xz[1], KBEMath.KBE_FLT_MAX, KBEMath.KBE_FLT_MAX, r, 0, true); } - - private void _updateVolatileData(Int32 entityID, float x, float y, float z, float yaw, float pitch, float roll, sbyte isOnGround) + + private void _updateVolatileData(Int32 entityID, float x, float y, float z, float yaw, float pitch, float roll, sbyte isOnGround, bool isOptimized) { Entity entity = null; @@ -1990,11 +2281,11 @@ private void _updateVolatileData(Int32 entityID, float x, float y, float z, floa if (x == KBEMath.KBE_FLT_MAX) x = 0.0f; if (y == KBEMath.KBE_FLT_MAX) y = 0.0f; if (z == KBEMath.KBE_FLT_MAX) z = 0.0f; - + if(positionChanged) { - Vector3 pos = new Vector3(x + _entityServerPos.x, y + _entityServerPos.y, z + _entityServerPos.z); - + Vector3 pos = isOptimized ? new Vector3(x + _entityServerPos.x, y + _entityServerPos.y, z + _entityServerPos.z) : new Vector3(x, y, z); + entity.position = pos; done = true; Event.fireOut(EventOutTypes.updatePosition, entity); @@ -2010,16 +2301,19 @@ private void _updateVolatileData(Int32 entityID, float x, float y, float z, floa */ public void Client_onStreamDataStarted(Int16 id, UInt32 datasize, string descr) { + Event.fireOut(EventOutTypes.onStreamDataStarted, id, datasize, descr); } public void Client_onStreamDataRecv(MemoryStream stream) { - // Int16 resID = stream.readInt16(); - // byte[] datas = stream.readBlob(); + Int16 resID = stream.readInt16(); + byte[] datas = stream.readBlob(); + Event.fireOut(EventOutTypes.onStreamDataRecv, resID, datas); } public void Client_onStreamDataCompleted(Int16 id) { + Event.fireOut(EventOutTypes.onStreamDataCompleted, id); } } @@ -2029,36 +2323,36 @@ public class KBEngineAppThread : KBEngineApp /* KBEngine处理线程 */ - public class KBEThread - { + public class KBEThread + { - KBEngineApp app_; + KBEngineApp app_; public bool over = false; - public KBEThread(KBEngineApp app) - { - this.app_ = app; - } + public KBEThread(KBEngineApp app) + { + this.app_ = app; + } - public void run() - { + public void run() + { Dbg.INFO_MSG("KBEThread::run()"); over = false; - try - { - this.app_.process(); - } - catch (Exception e) - { - Dbg.ERROR_MSG(e.ToString()); - } + try + { + this.app_.process(); + } + catch (Exception e) + { + Dbg.ERROR_MSG(e.ToString()); + } over = true; Dbg.INFO_MSG("KBEThread::end()"); - } - } - + } + } + private Thread _t = null; public KBEThread kbethread = null; diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Messages.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Messages.cs index 619534c6..65de5dcb 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Messages.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/Messages.cs @@ -526,6 +526,351 @@ public override void handleMessage(MemoryStream msgstream) } } + public class Message_Client_onUpdateData_ypr_optimized : Message + { + + public Message_Client_onUpdateData_ypr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_ypr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_yp_optimized : Message + { + + public Message_Client_onUpdateData_yp_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_yp_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_yr_optimized : Message + { + + public Message_Client_onUpdateData_yr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_yr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_pr_optimized : Message + { + + public Message_Client_onUpdateData_pr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_pr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_y_optimized : Message + { + + public Message_Client_onUpdateData_y_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_y_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_p_optimized : Message + { + + public Message_Client_onUpdateData_p_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_p_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_r_optimized : Message + { + + public Message_Client_onUpdateData_r_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_r_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_optimized : Message + { + + public Message_Client_onUpdateData_xz_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_ypr_optimized : Message + { + + public Message_Client_onUpdateData_xz_ypr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_ypr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_yp_optimized : Message + { + + public Message_Client_onUpdateData_xz_yp_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_yp_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_yr_optimized : Message + { + + public Message_Client_onUpdateData_xz_yr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_yr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_pr_optimized : Message + { + + public Message_Client_onUpdateData_xz_pr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_pr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_y_optimized : Message + { + + public Message_Client_onUpdateData_xz_y_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_y_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_p_optimized : Message + { + + public Message_Client_onUpdateData_xz_p_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_p_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xz_r_optimized : Message + { + + public Message_Client_onUpdateData_xz_r_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xz_r_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_optimized : Message + { + + public Message_Client_onUpdateData_xyz_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_ypr_optimized : Message + { + + public Message_Client_onUpdateData_xyz_ypr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_ypr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_yp_optimized : Message + { + + public Message_Client_onUpdateData_xyz_yp_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_yp_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_yr_optimized : Message + { + + public Message_Client_onUpdateData_xyz_yr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_yr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_pr_optimized : Message + { + + public Message_Client_onUpdateData_xyz_pr_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_pr_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_y_optimized : Message + { + + public Message_Client_onUpdateData_xyz_y_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_y_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_p_optimized : Message + { + + public Message_Client_onUpdateData_xyz_p_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_p_optimized(msgstream); + } + } + + public class Message_Client_onUpdateData_xyz_r_optimized : Message + { + + public Message_Client_onUpdateData_xyz_r_optimized(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onUpdateData_xyz_r_optimized(msgstream); + } + } + public class Message_Client_onImportServerErrorsDescr : Message { @@ -541,6 +886,21 @@ public override void handleMessage(MemoryStream msgstream) } } + public class Message_Client_onImportClientSDK : Message + { + + public Message_Client_onImportClientSDK(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + KBEngineApp.app.Client_onImportClientSDK(msgstream); + } + } + public class Message_Client_initSpaceData : Message { @@ -1083,6 +1443,20 @@ public override void handleMessage(MemoryStream msgstream) } } + public class Message_Loginapp_importClientSDK : Message + { + + public Message_Loginapp_importClientSDK(MessageID msgid, string msgname, Int16 length, sbyte argstype, List msgargtypes): + base(msgid, msgname, length, argstype, msgargtypes) + { + + } + + public override void handleMessage(MemoryStream msgstream) + { + } + } + public class Message_Loginapp_importServerErrorsDescr : Message { @@ -1344,155 +1718,227 @@ public static bool init() List Client_onReloginBaseappFailed_argstypes = new List(); Client_onReloginBaseappFailed_argstypes.Add(3); - Messages.messages["Client_onReloginBaseappFailed"] = new Message_Client_onReloginBaseappFailed(7, "Client_onReloginBaseappFailed", 2, 0, Client_onReloginBaseappFailed_argstypes); - Messages.clientMessages[7] = Messages.messages["Client_onReloginBaseappFailed"]; + Messages.messages["Client_onReloginBaseappFailed"] = new Message_Client_onReloginBaseappFailed(8, "Client_onReloginBaseappFailed", 2, 0, Client_onReloginBaseappFailed_argstypes); + Messages.clientMessages[8] = Messages.messages["Client_onReloginBaseappFailed"]; - Messages.messages["Client_onEntityLeaveWorldOptimized"] = new Message_Client_onEntityLeaveWorldOptimized(8, "Client_onEntityLeaveWorldOptimized", -1, -1, new List()); - Messages.clientMessages[8] = Messages.messages["Client_onEntityLeaveWorldOptimized"]; + Messages.messages["Client_onEntityLeaveWorldOptimized"] = new Message_Client_onEntityLeaveWorldOptimized(9, "Client_onEntityLeaveWorldOptimized", -1, -1, new List()); + Messages.clientMessages[9] = Messages.messages["Client_onEntityLeaveWorldOptimized"]; - Messages.messages["Client_onRemoteMethodCallOptimized"] = new Message_Client_onRemoteMethodCallOptimized(9, "Client_onRemoteMethodCallOptimized", -1, -1, new List()); - Messages.clientMessages[9] = Messages.messages["Client_onRemoteMethodCallOptimized"]; + Messages.messages["Client_onRemoteMethodCallOptimized"] = new Message_Client_onRemoteMethodCallOptimized(10, "Client_onRemoteMethodCallOptimized", -1, -1, new List()); + Messages.clientMessages[10] = Messages.messages["Client_onRemoteMethodCallOptimized"]; - Messages.messages["Client_onUpdatePropertysOptimized"] = new Message_Client_onUpdatePropertysOptimized(10, "Client_onUpdatePropertysOptimized", -1, -1, new List()); - Messages.clientMessages[10] = Messages.messages["Client_onUpdatePropertysOptimized"]; + Messages.messages["Client_onUpdatePropertysOptimized"] = new Message_Client_onUpdatePropertysOptimized(11, "Client_onUpdatePropertysOptimized", -1, -1, new List()); + Messages.clientMessages[11] = Messages.messages["Client_onUpdatePropertysOptimized"]; - Messages.messages["Client_onSetEntityPosAndDir"] = new Message_Client_onSetEntityPosAndDir(11, "Client_onSetEntityPosAndDir", -1, -1, new List()); - Messages.clientMessages[11] = Messages.messages["Client_onSetEntityPosAndDir"]; + Messages.messages["Client_onSetEntityPosAndDir"] = new Message_Client_onSetEntityPosAndDir(12, "Client_onSetEntityPosAndDir", -1, -1, new List()); + Messages.clientMessages[12] = Messages.messages["Client_onSetEntityPosAndDir"]; List Client_onUpdateBasePos_argstypes = new List(); Client_onUpdateBasePos_argstypes.Add(13); Client_onUpdateBasePos_argstypes.Add(13); Client_onUpdateBasePos_argstypes.Add(13); - Messages.messages["Client_onUpdateBasePos"] = new Message_Client_onUpdateBasePos(12, "Client_onUpdateBasePos", 12, 0, Client_onUpdateBasePos_argstypes); - Messages.clientMessages[12] = Messages.messages["Client_onUpdateBasePos"]; + Messages.messages["Client_onUpdateBasePos"] = new Message_Client_onUpdateBasePos(13, "Client_onUpdateBasePos", 12, 0, Client_onUpdateBasePos_argstypes); + Messages.clientMessages[13] = Messages.messages["Client_onUpdateBasePos"]; - Messages.messages["Client_onUpdateBaseDir"] = new Message_Client_onUpdateBaseDir(13, "Client_onUpdateBaseDir", -1, -1, new List()); - Messages.clientMessages[13] = Messages.messages["Client_onUpdateBaseDir"]; + Messages.messages["Client_onUpdateBaseDir"] = new Message_Client_onUpdateBaseDir(14, "Client_onUpdateBaseDir", -1, -1, new List()); + Messages.clientMessages[14] = Messages.messages["Client_onUpdateBaseDir"]; List Client_onUpdateBasePosXZ_argstypes = new List(); Client_onUpdateBasePosXZ_argstypes.Add(13); Client_onUpdateBasePosXZ_argstypes.Add(13); - Messages.messages["Client_onUpdateBasePosXZ"] = new Message_Client_onUpdateBasePosXZ(14, "Client_onUpdateBasePosXZ", 8, 0, Client_onUpdateBasePosXZ_argstypes); - Messages.clientMessages[14] = Messages.messages["Client_onUpdateBasePosXZ"]; + Messages.messages["Client_onUpdateBasePosXZ"] = new Message_Client_onUpdateBasePosXZ(15, "Client_onUpdateBasePosXZ", 8, 0, Client_onUpdateBasePosXZ_argstypes); + Messages.clientMessages[15] = Messages.messages["Client_onUpdateBasePosXZ"]; + + Messages.messages["Client_onUpdateData"] = new Message_Client_onUpdateData(16, "Client_onUpdateData", -1, -1, new List()); + Messages.clientMessages[16] = Messages.messages["Client_onUpdateData"]; + + Messages.messages["Client_onUpdateData_ypr"] = new Message_Client_onUpdateData_ypr(17, "Client_onUpdateData_ypr", -1, -1, new List()); + Messages.clientMessages[17] = Messages.messages["Client_onUpdateData_ypr"]; + + Messages.messages["Client_onUpdateData_yp"] = new Message_Client_onUpdateData_yp(18, "Client_onUpdateData_yp", -1, -1, new List()); + Messages.clientMessages[18] = Messages.messages["Client_onUpdateData_yp"]; + + Messages.messages["Client_onUpdateData_yr"] = new Message_Client_onUpdateData_yr(19, "Client_onUpdateData_yr", -1, -1, new List()); + Messages.clientMessages[19] = Messages.messages["Client_onUpdateData_yr"]; + + Messages.messages["Client_onUpdateData_pr"] = new Message_Client_onUpdateData_pr(20, "Client_onUpdateData_pr", -1, -1, new List()); + Messages.clientMessages[20] = Messages.messages["Client_onUpdateData_pr"]; - Messages.messages["Client_onUpdateData"] = new Message_Client_onUpdateData(15, "Client_onUpdateData", -1, -1, new List()); - Messages.clientMessages[15] = Messages.messages["Client_onUpdateData"]; + Messages.messages["Client_onUpdateData_y"] = new Message_Client_onUpdateData_y(21, "Client_onUpdateData_y", -1, -1, new List()); + Messages.clientMessages[21] = Messages.messages["Client_onUpdateData_y"]; - Messages.messages["Client_onUpdateData_ypr"] = new Message_Client_onUpdateData_ypr(16, "Client_onUpdateData_ypr", -1, -1, new List()); - Messages.clientMessages[16] = Messages.messages["Client_onUpdateData_ypr"]; + Messages.messages["Client_onUpdateData_p"] = new Message_Client_onUpdateData_p(22, "Client_onUpdateData_p", -1, -1, new List()); + Messages.clientMessages[22] = Messages.messages["Client_onUpdateData_p"]; - Messages.messages["Client_onUpdateData_yp"] = new Message_Client_onUpdateData_yp(17, "Client_onUpdateData_yp", -1, -1, new List()); - Messages.clientMessages[17] = Messages.messages["Client_onUpdateData_yp"]; + Messages.messages["Client_onUpdateData_r"] = new Message_Client_onUpdateData_r(23, "Client_onUpdateData_r", -1, -1, new List()); + Messages.clientMessages[23] = Messages.messages["Client_onUpdateData_r"]; - Messages.messages["Client_onUpdateData_yr"] = new Message_Client_onUpdateData_yr(18, "Client_onUpdateData_yr", -1, -1, new List()); - Messages.clientMessages[18] = Messages.messages["Client_onUpdateData_yr"]; + Messages.messages["Client_onUpdateData_xz"] = new Message_Client_onUpdateData_xz(24, "Client_onUpdateData_xz", -1, -1, new List()); + Messages.clientMessages[24] = Messages.messages["Client_onUpdateData_xz"]; - Messages.messages["Client_onUpdateData_pr"] = new Message_Client_onUpdateData_pr(19, "Client_onUpdateData_pr", -1, -1, new List()); - Messages.clientMessages[19] = Messages.messages["Client_onUpdateData_pr"]; + Messages.messages["Client_onUpdateData_xz_ypr"] = new Message_Client_onUpdateData_xz_ypr(25, "Client_onUpdateData_xz_ypr", -1, -1, new List()); + Messages.clientMessages[25] = Messages.messages["Client_onUpdateData_xz_ypr"]; - Messages.messages["Client_onUpdateData_y"] = new Message_Client_onUpdateData_y(20, "Client_onUpdateData_y", -1, -1, new List()); - Messages.clientMessages[20] = Messages.messages["Client_onUpdateData_y"]; + Messages.messages["Client_onUpdateData_xz_yp"] = new Message_Client_onUpdateData_xz_yp(26, "Client_onUpdateData_xz_yp", -1, -1, new List()); + Messages.clientMessages[26] = Messages.messages["Client_onUpdateData_xz_yp"]; - Messages.messages["Client_onUpdateData_p"] = new Message_Client_onUpdateData_p(21, "Client_onUpdateData_p", -1, -1, new List()); - Messages.clientMessages[21] = Messages.messages["Client_onUpdateData_p"]; + Messages.messages["Client_onUpdateData_xz_yr"] = new Message_Client_onUpdateData_xz_yr(27, "Client_onUpdateData_xz_yr", -1, -1, new List()); + Messages.clientMessages[27] = Messages.messages["Client_onUpdateData_xz_yr"]; - Messages.messages["Client_onUpdateData_r"] = new Message_Client_onUpdateData_r(22, "Client_onUpdateData_r", -1, -1, new List()); - Messages.clientMessages[22] = Messages.messages["Client_onUpdateData_r"]; + Messages.messages["Client_onUpdateData_xz_pr"] = new Message_Client_onUpdateData_xz_pr(28, "Client_onUpdateData_xz_pr", -1, -1, new List()); + Messages.clientMessages[28] = Messages.messages["Client_onUpdateData_xz_pr"]; - Messages.messages["Client_onUpdateData_xz"] = new Message_Client_onUpdateData_xz(23, "Client_onUpdateData_xz", -1, -1, new List()); - Messages.clientMessages[23] = Messages.messages["Client_onUpdateData_xz"]; + Messages.messages["Client_onUpdateData_xz_y"] = new Message_Client_onUpdateData_xz_y(29, "Client_onUpdateData_xz_y", -1, -1, new List()); + Messages.clientMessages[29] = Messages.messages["Client_onUpdateData_xz_y"]; - Messages.messages["Client_onUpdateData_xz_ypr"] = new Message_Client_onUpdateData_xz_ypr(24, "Client_onUpdateData_xz_ypr", -1, -1, new List()); - Messages.clientMessages[24] = Messages.messages["Client_onUpdateData_xz_ypr"]; + Messages.messages["Client_onUpdateData_xz_p"] = new Message_Client_onUpdateData_xz_p(30, "Client_onUpdateData_xz_p", -1, -1, new List()); + Messages.clientMessages[30] = Messages.messages["Client_onUpdateData_xz_p"]; - Messages.messages["Client_onUpdateData_xz_yp"] = new Message_Client_onUpdateData_xz_yp(25, "Client_onUpdateData_xz_yp", -1, -1, new List()); - Messages.clientMessages[25] = Messages.messages["Client_onUpdateData_xz_yp"]; + Messages.messages["Client_onUpdateData_xz_r"] = new Message_Client_onUpdateData_xz_r(31, "Client_onUpdateData_xz_r", -1, -1, new List()); + Messages.clientMessages[31] = Messages.messages["Client_onUpdateData_xz_r"]; - Messages.messages["Client_onUpdateData_xz_yr"] = new Message_Client_onUpdateData_xz_yr(26, "Client_onUpdateData_xz_yr", -1, -1, new List()); - Messages.clientMessages[26] = Messages.messages["Client_onUpdateData_xz_yr"]; + Messages.messages["Client_onUpdateData_xyz"] = new Message_Client_onUpdateData_xyz(32, "Client_onUpdateData_xyz", -1, -1, new List()); + Messages.clientMessages[32] = Messages.messages["Client_onUpdateData_xyz"]; - Messages.messages["Client_onUpdateData_xz_pr"] = new Message_Client_onUpdateData_xz_pr(27, "Client_onUpdateData_xz_pr", -1, -1, new List()); - Messages.clientMessages[27] = Messages.messages["Client_onUpdateData_xz_pr"]; + Messages.messages["Client_onUpdateData_xyz_ypr"] = new Message_Client_onUpdateData_xyz_ypr(33, "Client_onUpdateData_xyz_ypr", -1, -1, new List()); + Messages.clientMessages[33] = Messages.messages["Client_onUpdateData_xyz_ypr"]; - Messages.messages["Client_onUpdateData_xz_y"] = new Message_Client_onUpdateData_xz_y(28, "Client_onUpdateData_xz_y", -1, -1, new List()); - Messages.clientMessages[28] = Messages.messages["Client_onUpdateData_xz_y"]; + Messages.messages["Client_onUpdateData_xyz_yp"] = new Message_Client_onUpdateData_xyz_yp(34, "Client_onUpdateData_xyz_yp", -1, -1, new List()); + Messages.clientMessages[34] = Messages.messages["Client_onUpdateData_xyz_yp"]; - Messages.messages["Client_onUpdateData_xz_p"] = new Message_Client_onUpdateData_xz_p(29, "Client_onUpdateData_xz_p", -1, -1, new List()); - Messages.clientMessages[29] = Messages.messages["Client_onUpdateData_xz_p"]; + Messages.messages["Client_onUpdateData_xyz_yr"] = new Message_Client_onUpdateData_xyz_yr(35, "Client_onUpdateData_xyz_yr", -1, -1, new List()); + Messages.clientMessages[35] = Messages.messages["Client_onUpdateData_xyz_yr"]; - Messages.messages["Client_onUpdateData_xz_r"] = new Message_Client_onUpdateData_xz_r(30, "Client_onUpdateData_xz_r", -1, -1, new List()); - Messages.clientMessages[30] = Messages.messages["Client_onUpdateData_xz_r"]; + Messages.messages["Client_onUpdateData_xyz_pr"] = new Message_Client_onUpdateData_xyz_pr(36, "Client_onUpdateData_xyz_pr", -1, -1, new List()); + Messages.clientMessages[36] = Messages.messages["Client_onUpdateData_xyz_pr"]; - Messages.messages["Client_onUpdateData_xyz"] = new Message_Client_onUpdateData_xyz(31, "Client_onUpdateData_xyz", -1, -1, new List()); - Messages.clientMessages[31] = Messages.messages["Client_onUpdateData_xyz"]; + Messages.messages["Client_onUpdateData_xyz_y"] = new Message_Client_onUpdateData_xyz_y(37, "Client_onUpdateData_xyz_y", -1, -1, new List()); + Messages.clientMessages[37] = Messages.messages["Client_onUpdateData_xyz_y"]; - Messages.messages["Client_onUpdateData_xyz_ypr"] = new Message_Client_onUpdateData_xyz_ypr(32, "Client_onUpdateData_xyz_ypr", -1, -1, new List()); - Messages.clientMessages[32] = Messages.messages["Client_onUpdateData_xyz_ypr"]; + Messages.messages["Client_onUpdateData_xyz_p"] = new Message_Client_onUpdateData_xyz_p(38, "Client_onUpdateData_xyz_p", -1, -1, new List()); + Messages.clientMessages[38] = Messages.messages["Client_onUpdateData_xyz_p"]; - Messages.messages["Client_onUpdateData_xyz_yp"] = new Message_Client_onUpdateData_xyz_yp(33, "Client_onUpdateData_xyz_yp", -1, -1, new List()); - Messages.clientMessages[33] = Messages.messages["Client_onUpdateData_xyz_yp"]; + Messages.messages["Client_onUpdateData_xyz_r"] = new Message_Client_onUpdateData_xyz_r(39, "Client_onUpdateData_xyz_r", -1, -1, new List()); + Messages.clientMessages[39] = Messages.messages["Client_onUpdateData_xyz_r"]; - Messages.messages["Client_onUpdateData_xyz_yr"] = new Message_Client_onUpdateData_xyz_yr(34, "Client_onUpdateData_xyz_yr", -1, -1, new List()); - Messages.clientMessages[34] = Messages.messages["Client_onUpdateData_xyz_yr"]; + Messages.messages["Client_onUpdateData_ypr_optimized"] = new Message_Client_onUpdateData_ypr_optimized(40, "Client_onUpdateData_ypr_optimized", -1, -1, new List()); + Messages.clientMessages[40] = Messages.messages["Client_onUpdateData_ypr_optimized"]; - Messages.messages["Client_onUpdateData_xyz_pr"] = new Message_Client_onUpdateData_xyz_pr(35, "Client_onUpdateData_xyz_pr", -1, -1, new List()); - Messages.clientMessages[35] = Messages.messages["Client_onUpdateData_xyz_pr"]; + Messages.messages["Client_onUpdateData_yp_optimized"] = new Message_Client_onUpdateData_yp_optimized(41, "Client_onUpdateData_yp_optimized", -1, -1, new List()); + Messages.clientMessages[41] = Messages.messages["Client_onUpdateData_yp_optimized"]; - Messages.messages["Client_onUpdateData_xyz_y"] = new Message_Client_onUpdateData_xyz_y(36, "Client_onUpdateData_xyz_y", -1, -1, new List()); - Messages.clientMessages[36] = Messages.messages["Client_onUpdateData_xyz_y"]; + Messages.messages["Client_onUpdateData_yr_optimized"] = new Message_Client_onUpdateData_yr_optimized(42, "Client_onUpdateData_yr_optimized", -1, -1, new List()); + Messages.clientMessages[42] = Messages.messages["Client_onUpdateData_yr_optimized"]; - Messages.messages["Client_onUpdateData_xyz_p"] = new Message_Client_onUpdateData_xyz_p(37, "Client_onUpdateData_xyz_p", -1, -1, new List()); - Messages.clientMessages[37] = Messages.messages["Client_onUpdateData_xyz_p"]; + Messages.messages["Client_onUpdateData_pr_optimized"] = new Message_Client_onUpdateData_pr_optimized(43, "Client_onUpdateData_pr_optimized", -1, -1, new List()); + Messages.clientMessages[43] = Messages.messages["Client_onUpdateData_pr_optimized"]; - Messages.messages["Client_onUpdateData_xyz_r"] = new Message_Client_onUpdateData_xyz_r(38, "Client_onUpdateData_xyz_r", -1, -1, new List()); - Messages.clientMessages[38] = Messages.messages["Client_onUpdateData_xyz_r"]; + Messages.messages["Client_onUpdateData_y_optimized"] = new Message_Client_onUpdateData_y_optimized(44, "Client_onUpdateData_y_optimized", -1, -1, new List()); + Messages.clientMessages[44] = Messages.messages["Client_onUpdateData_y_optimized"]; - Messages.messages["Client_onImportServerErrorsDescr"] = new Message_Client_onImportServerErrorsDescr(39, "Client_onImportServerErrorsDescr", -1, -1, new List()); - Messages.clientMessages[39] = Messages.messages["Client_onImportServerErrorsDescr"]; + Messages.messages["Client_onUpdateData_p_optimized"] = new Message_Client_onUpdateData_p_optimized(45, "Client_onUpdateData_p_optimized", -1, -1, new List()); + Messages.clientMessages[45] = Messages.messages["Client_onUpdateData_p_optimized"]; - Messages.messages["Client_initSpaceData"] = new Message_Client_initSpaceData(40, "Client_initSpaceData", -1, -1, new List()); - Messages.clientMessages[40] = Messages.messages["Client_initSpaceData"]; + Messages.messages["Client_onUpdateData_r_optimized"] = new Message_Client_onUpdateData_r_optimized(46, "Client_onUpdateData_r_optimized", -1, -1, new List()); + Messages.clientMessages[46] = Messages.messages["Client_onUpdateData_r_optimized"]; + + Messages.messages["Client_onUpdateData_xz_optimized"] = new Message_Client_onUpdateData_xz_optimized(47, "Client_onUpdateData_xz_optimized", -1, -1, new List()); + Messages.clientMessages[47] = Messages.messages["Client_onUpdateData_xz_optimized"]; + + Messages.messages["Client_onUpdateData_xz_ypr_optimized"] = new Message_Client_onUpdateData_xz_ypr_optimized(48, "Client_onUpdateData_xz_ypr_optimized", -1, -1, new List()); + Messages.clientMessages[48] = Messages.messages["Client_onUpdateData_xz_ypr_optimized"]; + + Messages.messages["Client_onUpdateData_xz_yp_optimized"] = new Message_Client_onUpdateData_xz_yp_optimized(49, "Client_onUpdateData_xz_yp_optimized", -1, -1, new List()); + Messages.clientMessages[49] = Messages.messages["Client_onUpdateData_xz_yp_optimized"]; + + Messages.messages["Client_onUpdateData_xz_yr_optimized"] = new Message_Client_onUpdateData_xz_yr_optimized(50, "Client_onUpdateData_xz_yr_optimized", -1, -1, new List()); + Messages.clientMessages[50] = Messages.messages["Client_onUpdateData_xz_yr_optimized"]; + + Messages.messages["Client_onUpdateData_xz_pr_optimized"] = new Message_Client_onUpdateData_xz_pr_optimized(51, "Client_onUpdateData_xz_pr_optimized", -1, -1, new List()); + Messages.clientMessages[51] = Messages.messages["Client_onUpdateData_xz_pr_optimized"]; + + Messages.messages["Client_onUpdateData_xz_y_optimized"] = new Message_Client_onUpdateData_xz_y_optimized(52, "Client_onUpdateData_xz_y_optimized", -1, -1, new List()); + Messages.clientMessages[52] = Messages.messages["Client_onUpdateData_xz_y_optimized"]; + + Messages.messages["Client_onUpdateData_xz_p_optimized"] = new Message_Client_onUpdateData_xz_p_optimized(53, "Client_onUpdateData_xz_p_optimized", -1, -1, new List()); + Messages.clientMessages[53] = Messages.messages["Client_onUpdateData_xz_p_optimized"]; + + Messages.messages["Client_onUpdateData_xz_r_optimized"] = new Message_Client_onUpdateData_xz_r_optimized(54, "Client_onUpdateData_xz_r_optimized", -1, -1, new List()); + Messages.clientMessages[54] = Messages.messages["Client_onUpdateData_xz_r_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_optimized"] = new Message_Client_onUpdateData_xyz_optimized(55, "Client_onUpdateData_xyz_optimized", -1, -1, new List()); + Messages.clientMessages[55] = Messages.messages["Client_onUpdateData_xyz_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_ypr_optimized"] = new Message_Client_onUpdateData_xyz_ypr_optimized(56, "Client_onUpdateData_xyz_ypr_optimized", -1, -1, new List()); + Messages.clientMessages[56] = Messages.messages["Client_onUpdateData_xyz_ypr_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_yp_optimized"] = new Message_Client_onUpdateData_xyz_yp_optimized(57, "Client_onUpdateData_xyz_yp_optimized", -1, -1, new List()); + Messages.clientMessages[57] = Messages.messages["Client_onUpdateData_xyz_yp_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_yr_optimized"] = new Message_Client_onUpdateData_xyz_yr_optimized(58, "Client_onUpdateData_xyz_yr_optimized", -1, -1, new List()); + Messages.clientMessages[58] = Messages.messages["Client_onUpdateData_xyz_yr_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_pr_optimized"] = new Message_Client_onUpdateData_xyz_pr_optimized(59, "Client_onUpdateData_xyz_pr_optimized", -1, -1, new List()); + Messages.clientMessages[59] = Messages.messages["Client_onUpdateData_xyz_pr_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_y_optimized"] = new Message_Client_onUpdateData_xyz_y_optimized(60, "Client_onUpdateData_xyz_y_optimized", -1, -1, new List()); + Messages.clientMessages[60] = Messages.messages["Client_onUpdateData_xyz_y_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_p_optimized"] = new Message_Client_onUpdateData_xyz_p_optimized(61, "Client_onUpdateData_xyz_p_optimized", -1, -1, new List()); + Messages.clientMessages[61] = Messages.messages["Client_onUpdateData_xyz_p_optimized"]; + + Messages.messages["Client_onUpdateData_xyz_r_optimized"] = new Message_Client_onUpdateData_xyz_r_optimized(62, "Client_onUpdateData_xyz_r_optimized", -1, -1, new List()); + Messages.clientMessages[62] = Messages.messages["Client_onUpdateData_xyz_r_optimized"]; + + Messages.messages["Client_onImportServerErrorsDescr"] = new Message_Client_onImportServerErrorsDescr(63, "Client_onImportServerErrorsDescr", -1, -1, new List()); + Messages.clientMessages[63] = Messages.messages["Client_onImportServerErrorsDescr"]; + + Messages.messages["Client_onImportClientSDK"] = new Message_Client_onImportClientSDK(64, "Client_onImportClientSDK", -1, -1, new List()); + Messages.clientMessages[64] = Messages.messages["Client_onImportClientSDK"]; + + Messages.messages["Client_initSpaceData"] = new Message_Client_initSpaceData(65, "Client_initSpaceData", -1, -1, new List()); + Messages.clientMessages[65] = Messages.messages["Client_initSpaceData"]; List Client_setSpaceData_argstypes = new List(); Client_setSpaceData_argstypes.Add(4); Client_setSpaceData_argstypes.Add(1); Client_setSpaceData_argstypes.Add(1); - Messages.messages["Client_setSpaceData"] = new Message_Client_setSpaceData(41, "Client_setSpaceData", -1, 0, Client_setSpaceData_argstypes); - Messages.clientMessages[41] = Messages.messages["Client_setSpaceData"]; + Messages.messages["Client_setSpaceData"] = new Message_Client_setSpaceData(66, "Client_setSpaceData", -1, 0, Client_setSpaceData_argstypes); + Messages.clientMessages[66] = Messages.messages["Client_setSpaceData"]; List Client_delSpaceData_argstypes = new List(); Client_delSpaceData_argstypes.Add(4); Client_delSpaceData_argstypes.Add(1); - Messages.messages["Client_delSpaceData"] = new Message_Client_delSpaceData(42, "Client_delSpaceData", -1, 0, Client_delSpaceData_argstypes); - Messages.clientMessages[42] = Messages.messages["Client_delSpaceData"]; + Messages.messages["Client_delSpaceData"] = new Message_Client_delSpaceData(67, "Client_delSpaceData", -1, 0, Client_delSpaceData_argstypes); + Messages.clientMessages[67] = Messages.messages["Client_delSpaceData"]; List Client_onReqAccountResetPasswordCB_argstypes = new List(); Client_onReqAccountResetPasswordCB_argstypes.Add(3); - Messages.messages["Client_onReqAccountResetPasswordCB"] = new Message_Client_onReqAccountResetPasswordCB(43, "Client_onReqAccountResetPasswordCB", 2, 0, Client_onReqAccountResetPasswordCB_argstypes); - Messages.clientMessages[43] = Messages.messages["Client_onReqAccountResetPasswordCB"]; + Messages.messages["Client_onReqAccountResetPasswordCB"] = new Message_Client_onReqAccountResetPasswordCB(68, "Client_onReqAccountResetPasswordCB", 2, 0, Client_onReqAccountResetPasswordCB_argstypes); + Messages.clientMessages[68] = Messages.messages["Client_onReqAccountResetPasswordCB"]; List Client_onReqAccountBindEmailCB_argstypes = new List(); Client_onReqAccountBindEmailCB_argstypes.Add(3); - Messages.messages["Client_onReqAccountBindEmailCB"] = new Message_Client_onReqAccountBindEmailCB(44, "Client_onReqAccountBindEmailCB", 2, 0, Client_onReqAccountBindEmailCB_argstypes); - Messages.clientMessages[44] = Messages.messages["Client_onReqAccountBindEmailCB"]; + Messages.messages["Client_onReqAccountBindEmailCB"] = new Message_Client_onReqAccountBindEmailCB(69, "Client_onReqAccountBindEmailCB", 2, 0, Client_onReqAccountBindEmailCB_argstypes); + Messages.clientMessages[69] = Messages.messages["Client_onReqAccountBindEmailCB"]; List Client_onReqAccountNewPasswordCB_argstypes = new List(); Client_onReqAccountNewPasswordCB_argstypes.Add(3); - Messages.messages["Client_onReqAccountNewPasswordCB"] = new Message_Client_onReqAccountNewPasswordCB(45, "Client_onReqAccountNewPasswordCB", 2, 0, Client_onReqAccountNewPasswordCB_argstypes); - Messages.clientMessages[45] = Messages.messages["Client_onReqAccountNewPasswordCB"]; + Messages.messages["Client_onReqAccountNewPasswordCB"] = new Message_Client_onReqAccountNewPasswordCB(70, "Client_onReqAccountNewPasswordCB", 2, 0, Client_onReqAccountNewPasswordCB_argstypes); + Messages.clientMessages[70] = Messages.messages["Client_onReqAccountNewPasswordCB"]; - Messages.messages["Client_onReloginBaseappSuccessfully"] = new Message_Client_onReloginBaseappSuccessfully(46, "Client_onReloginBaseappSuccessfully", -1, -1, new List()); - Messages.clientMessages[46] = Messages.messages["Client_onReloginBaseappSuccessfully"]; + Messages.messages["Client_onReloginBaseappSuccessfully"] = new Message_Client_onReloginBaseappSuccessfully(71, "Client_onReloginBaseappSuccessfully", -1, -1, new List()); + Messages.clientMessages[71] = Messages.messages["Client_onReloginBaseappSuccessfully"]; - Messages.messages["Client_onAppActiveTickCB"] = new Message_Client_onAppActiveTickCB(47, "Client_onAppActiveTickCB", 0, 0, new List()); - Messages.clientMessages[47] = Messages.messages["Client_onAppActiveTickCB"]; + Messages.messages["Client_onAppActiveTickCB"] = new Message_Client_onAppActiveTickCB(72, "Client_onAppActiveTickCB", 0, 0, new List()); + Messages.clientMessages[72] = Messages.messages["Client_onAppActiveTickCB"]; Messages.messages["Client_onCreateAccountResult"] = new Message_Client_onCreateAccountResult(501, "Client_onCreateAccountResult", -1, -1, new List()); Messages.clientMessages[501] = Messages.messages["Client_onCreateAccountResult"]; @@ -1607,49 +2053,52 @@ public static bool init() Messages.messages["Loginapp_reqCreateMailAccount"] = new Message_Loginapp_reqCreateMailAccount(6, "Loginapp_reqCreateMailAccount", -1, 0, new List()); Messages.loginappMessages[6] = Messages.messages["Loginapp_reqCreateMailAccount"]; - Messages.messages["Loginapp_importServerErrorsDescr"] = new Message_Loginapp_importServerErrorsDescr(7, "Loginapp_importServerErrorsDescr", 0, 0, new List()); - Messages.loginappMessages[7] = Messages.messages["Loginapp_importServerErrorsDescr"]; + Messages.messages["Loginapp_importClientSDK"] = new Message_Loginapp_importClientSDK(7, "Loginapp_importClientSDK", -1, 0, new List()); + Messages.loginappMessages[7] = Messages.messages["Loginapp_importClientSDK"]; + + Messages.messages["Loginapp_importServerErrorsDescr"] = new Message_Loginapp_importServerErrorsDescr(8, "Loginapp_importServerErrorsDescr", 0, 0, new List()); + Messages.loginappMessages[8] = Messages.messages["Loginapp_importServerErrorsDescr"]; - Messages.messages["Loginapp_onClientActiveTick"] = new Message_Loginapp_onClientActiveTick(10, "Loginapp_onClientActiveTick", 0, 0, new List()); - Messages.loginappMessages[10] = Messages.messages["Loginapp_onClientActiveTick"]; + Messages.messages["Loginapp_onClientActiveTick"] = new Message_Loginapp_onClientActiveTick(11, "Loginapp_onClientActiveTick", 0, 0, new List()); + Messages.loginappMessages[11] = Messages.messages["Loginapp_onClientActiveTick"]; List Loginapp_reqAccountResetPassword_argstypes = new List(); Loginapp_reqAccountResetPassword_argstypes.Add(1); - Messages.messages["Loginapp_reqAccountResetPassword"] = new Message_Loginapp_reqAccountResetPassword(11, "Loginapp_reqAccountResetPassword", -1, 0, Loginapp_reqAccountResetPassword_argstypes); - Messages.loginappMessages[11] = Messages.messages["Loginapp_reqAccountResetPassword"]; + Messages.messages["Loginapp_reqAccountResetPassword"] = new Message_Loginapp_reqAccountResetPassword(12, "Loginapp_reqAccountResetPassword", -1, 0, Loginapp_reqAccountResetPassword_argstypes); + Messages.loginappMessages[12] = Messages.messages["Loginapp_reqAccountResetPassword"]; List Baseapp_logoutBaseapp_argstypes = new List(); Baseapp_logoutBaseapp_argstypes.Add(5); Baseapp_logoutBaseapp_argstypes.Add(8); - Messages.messages["Baseapp_logoutBaseapp"] = new Message_Baseapp_logoutBaseapp(23, "Baseapp_logoutBaseapp", 12, 0, Baseapp_logoutBaseapp_argstypes); - Messages.baseappMessages[23] = Messages.messages["Baseapp_logoutBaseapp"]; + Messages.messages["Baseapp_logoutBaseapp"] = new Message_Baseapp_logoutBaseapp(24, "Baseapp_logoutBaseapp", 12, 0, Baseapp_logoutBaseapp_argstypes); + Messages.baseappMessages[24] = Messages.messages["Baseapp_logoutBaseapp"]; - Messages.messages["Baseapp_onUpdateDataFromClient"] = new Message_Baseapp_onUpdateDataFromClient(26, "Baseapp_onUpdateDataFromClient", -1, -1, new List()); - Messages.baseappMessages[26] = Messages.messages["Baseapp_onUpdateDataFromClient"]; + Messages.messages["Baseapp_onUpdateDataFromClient"] = new Message_Baseapp_onUpdateDataFromClient(27, "Baseapp_onUpdateDataFromClient", -1, -1, new List()); + Messages.baseappMessages[27] = Messages.messages["Baseapp_onUpdateDataFromClient"]; - Messages.messages["Baseapp_onUpdateDataFromClientForControlledEntity"] = new Message_Baseapp_onUpdateDataFromClientForControlledEntity(27, "Baseapp_onUpdateDataFromClientForControlledEntity", -1, -1, new List()); - Messages.baseappMessages[27] = Messages.messages["Baseapp_onUpdateDataFromClientForControlledEntity"]; + Messages.messages["Baseapp_onUpdateDataFromClientForControlledEntity"] = new Message_Baseapp_onUpdateDataFromClientForControlledEntity(28, "Baseapp_onUpdateDataFromClientForControlledEntity", -1, -1, new List()); + Messages.baseappMessages[28] = Messages.messages["Baseapp_onUpdateDataFromClientForControlledEntity"]; List Baseapp_reqAccountBindEmail_argstypes = new List(); Baseapp_reqAccountBindEmail_argstypes.Add(8); Baseapp_reqAccountBindEmail_argstypes.Add(1); Baseapp_reqAccountBindEmail_argstypes.Add(1); - Messages.messages["Baseapp_reqAccountBindEmail"] = new Message_Baseapp_reqAccountBindEmail(49, "Baseapp_reqAccountBindEmail", -1, 0, Baseapp_reqAccountBindEmail_argstypes); - Messages.baseappMessages[49] = Messages.messages["Baseapp_reqAccountBindEmail"]; + Messages.messages["Baseapp_reqAccountBindEmail"] = new Message_Baseapp_reqAccountBindEmail(50, "Baseapp_reqAccountBindEmail", -1, 0, Baseapp_reqAccountBindEmail_argstypes); + Messages.baseappMessages[50] = Messages.messages["Baseapp_reqAccountBindEmail"]; List Baseapp_reqAccountNewPassword_argstypes = new List(); Baseapp_reqAccountNewPassword_argstypes.Add(8); Baseapp_reqAccountNewPassword_argstypes.Add(1); Baseapp_reqAccountNewPassword_argstypes.Add(1); - Messages.messages["Baseapp_reqAccountNewPassword"] = new Message_Baseapp_reqAccountNewPassword(52, "Baseapp_reqAccountNewPassword", -1, 0, Baseapp_reqAccountNewPassword_argstypes); - Messages.baseappMessages[52] = Messages.messages["Baseapp_reqAccountNewPassword"]; + Messages.messages["Baseapp_reqAccountNewPassword"] = new Message_Baseapp_reqAccountNewPassword(53, "Baseapp_reqAccountNewPassword", -1, 0, Baseapp_reqAccountNewPassword_argstypes); + Messages.baseappMessages[53] = Messages.messages["Baseapp_reqAccountNewPassword"]; - Messages.messages["Entity_forwardEntityMessageToCellappFromClient"] = new Message_Entity_forwardEntityMessageToCellappFromClient(56, "Entity_forwardEntityMessageToCellappFromClient", -1, -1, new List()); - Messages.baseappMessages[56] = Messages.messages["Entity_forwardEntityMessageToCellappFromClient"]; + Messages.messages["Entity_forwardEntityMessageToCellappFromClient"] = new Message_Entity_forwardEntityMessageToCellappFromClient(57, "Entity_forwardEntityMessageToCellappFromClient", -1, -1, new List()); + Messages.baseappMessages[57] = Messages.messages["Entity_forwardEntityMessageToCellappFromClient"]; Messages.messages["Baseapp_hello"] = new Message_Baseapp_hello(200, "Baseapp_hello", -1, -1, new List()); Messages.baseappMessages[200] = Messages.messages["Baseapp_hello"]; diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/MonsterBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/MonsterBase.cs index 0636c768..42330dae 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/MonsterBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/MonsterBase.cs @@ -94,14 +94,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/NPCBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/NPCBase.cs index 82f33003..26a8330e 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/NPCBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/NPCBase.cs @@ -79,14 +79,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceBase.cs index e0a4ab82..b7fec4e1 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceBase.cs @@ -75,14 +75,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceDuplicateBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceDuplicateBase.cs index 59567c60..552df9b9 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceDuplicateBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpaceDuplicateBase.cs @@ -75,14 +75,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpacesBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpacesBase.cs index b8118e48..3854fe02 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpacesBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpacesBase.cs @@ -75,14 +75,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); } diff --git a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpawnPointBase.cs b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpawnPointBase.cs index 17e6d1ec..7e04b2a7 100644 --- a/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpawnPointBase.cs +++ b/Assets/Plugins/kbengine/kbengine_unity3d_plugins/SpawnPointBase.cs @@ -75,14 +75,21 @@ public override void onRemoteMethodCall(MemoryStream stream) UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; - if(sm.useMethodDescrAlias) + if(sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); - methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); + } + + if(sm.useMethodDescrAlias) + { + methodUtype = stream.readUint8(); + } + else + { methodUtype = stream.readUint16(); }