| | |
| | | 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) |
| | |
| | | else |
| | | { |
| | | #if UNITY_EDITOR |
| | | PackageRegedit.TransPack(cmd, vPackBytes); |
| | | PackageRegedit.TransPack(socketType, cmd, vPackBytes); |
| | | #endif |
| | | CSharpCallLua.OnRecieveLuaNetPackage(cmd, vPackBytes); |
| | | } |
| | |
| | | } |
| | | 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); |