示例#1
0
        public virtual void Combine(IMsgFactory factory)
        {
            if (groupId != factory.groupId)
            {
                Debug.LogWarning("<color=orange>[Warning]</color>---" + "groupId不同,不能合并");
                return;
            }

            MsgFactory_Auto fsrc = factory as MsgFactory_Auto;

            if (fsrc == null)
            {
                Debug.LogWarning("<color=orange>[Warning]</color>---" + "MsgFactory类型非法,合并失败");
                return;
            }
            ToolsNet.CombineDict <CMD_Command, MsgItem>(_dictItem, fsrc._dictItem, false);
        }
        public virtual void Combine(IMsgFactory fact)
        {
            if (fact.groupId != groupId)
            {
                Debug.LogWarning("<color=orange>[Warning]</color>---" + "groupId不同,不能合并");
                return;
            }
            MsgFactory_Manual factory = fact as MsgFactory_Manual;

            if (factory == null)
            {
                Debug.LogWarning("<color=orange>[Warning]</color>---" + "MsgFactory类型非法,合并失败");
                return;
            }
            ToolsNet.CombineDict <CMD_Command, CreateInstance_req>(_dictCreateReq, factory._dictCreateReq, false);
            ToolsNet.CombineDict <CMD_Command, CreateInstance_respNtf>(_dictCreateRespNtf, factory._dictCreateRespNtf, false);
        }