少年修仙传客户端代码仓库
client_Wu Xijin
2018-12-14 2adf9f32a1e56c00685dc1e633b8e6fae99c8dde
Core/NetworkPackage/Socket/ClientSocket.cs
@@ -275,7 +275,7 @@
                var cmd = (ushort)((ushort)(vCmdBytes[0] << 8) + vCmdBytes[1]);
                if (PackageRegedit.Contain(cmd))
                {
                    vNetpack = PackageRegedit.TransPack(cmd, vPackBytes);
                    vNetpack = PackageRegedit.TransPack(socketType,cmd, vPackBytes);
                    if (vNetpack != null)
                    {
                        if (DebugEx.EnableNetLog)
@@ -291,7 +291,7 @@
                else
                {
#if UNITY_EDITOR
                    PackageRegedit.TransPack(cmd, vPackBytes);
                    PackageRegedit.TransPack(socketType, cmd, vPackBytes);
#endif
                    CSharpCallLua.OnRecieveLuaNetPackage(cmd, vPackBytes);
                }
@@ -333,7 +333,7 @@
        }
        protocol.CombineDatas(encoder);
#if UNITY_EDITOR
        NetPkgCtl.AddNetPkg(protocol.vInfoCont, NetPkgType.Client, protocol.ToString(), FieldPrint.PrintFields(protocol), FieldPrint.PrintFieldsExpand(protocol, true));
        NetPkgCtl.AddNetPkg(socketType, protocol.vInfoCont, NetPkgType.Client, protocol.ToString(), FieldPrint.PrintFields(protocol), FieldPrint.PrintFieldsExpand(protocol, true));
#endif
        sendBytesTotal += protocol.combineBytes.Length;
        SendBytes(protocol.combineBytes);