Example #1
0
        public virtual void onRPC(uint cmdID, string cmdName, Variant par)
        {
            bool flag = cmdID != 9u;

            if (flag)
            {
                DebugTrace.add(Define.DebugTrace.DTT_DTL, string.Concat(new object[]
                {
                    "cvcon_onrpc with cmd[",
                    cmdID,
                    "][",
                    cmdName.Replace("\0", ""),
                    "]"
                }));
                DebugTrace.dumpObj(par);
            }
            bool flag2 = this.type == 1;

            if (flag2)
            {
                bool flag3 = !SessionFuncMgr.instance.onRpc(cmdID, par);
                if (flag3)
                {
                    this.onRPCMsgProcesser(cmdID, cmdName, par);
                }
            }
            else
            {
                this.onRPCMsgProcesser(cmdID, cmdName, par);
            }
        }
Example #2
0
        public virtual void onTPKG(uint cmdID, Variant par)
        {
            DebugTrace.add(Define.DebugTrace.DTT_DTL, "OnTPKG with cmd[" + cmdID + "]");
            DebugTrace.dumpObj(par);
            bool flag = this.type == 1;

            if (flag)
            {
                bool flag2 = !SessionFuncMgr.instance.onTpkg(cmdID, par);
                if (flag2)
                {
                    this.onTPKGMsgProcesser(cmdID, par);
                }
            }
            else
            {
                this.onTPKGMsgProcesser(cmdID, par);
            }
        }