| | |
| | | var businessInstance = _business.Assembly.CreateInstance(_business.Name) as DtcBasic;
|
| | | if (packToBusinessTable.ContainsKey(packInstance.cmd))
|
| | | {
|
| | | DesignDebug.LogFormat("重复封包登记: {0}!", _pack.Name);
|
| | | DebugEx.LogFormat("重复封包登记: {0}!", _pack.Name);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.LogError(ex);
|
| | | DebugEx.LogError(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | #if UNITY_EDITOR
|
| | | NetPkgCtl.AddNetPkg(vStr, NetPkgType.Server, string.Empty, string.Empty, null);
|
| | | DesignDebug.LogErrorFormat("C#层收到未登记的解包协议:{0},{1}", vCmdBytes[0].ToString("x2"), vCmdBytes[1].ToString("x2"));
|
| | | DebugEx.LogErrorFormat("C#层收到未登记的解包协议:{0},{1}", vCmdBytes[0].ToString("x2"), vCmdBytes[1].ToString("x2"));
|
| | | #endif
|
| | | }
|
| | | return null;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("收到未定义的解包协议:" + vBytes[0].ToString("x2").ToUpper() + "," + vBytes[1].ToString("x2").ToUpper());
|
| | | DebugEx.LogError("收到未定义的解包协议:" + vBytes[0].ToString("x2").ToUpper() + "," + vBytes[1].ToString("x2").ToUpper());
|
| | | }
|
| | | return vNetPackInst;
|
| | | }
|