Esempio n. 1
0
        public ulong AddRoleInfoByType(enROLEINFO_TYPE roleType, ulong uuID)
        {
            CRoleInfo roleInfo = new CRoleInfo(roleType, uuID);

            if (roleInfo != null)
            {
                this.Add(roleInfo);
            }
            return(uuID);
        }
        public ulong AddRoleInfoByType(enROLEINFO_TYPE roleType, ulong uuID, int logicWorldID = 0)
        {
            CRoleInfo cRoleInfo = new CRoleInfo(roleType, uuID, logicWorldID);

            if (cRoleInfo != null)
            {
                this.Add(cRoleInfo);
            }
            return(uuID);
        }
Esempio n. 3
0
 public void RemoveRoleInfoByType(enROLEINFO_TYPE roleType)
 {
     if ((this.m_roleInfoList != null) && (this.m_roleInfoList.Count > 0))
     {
         CRoleInfo roleInfo = null;
         int       num      = 0;
         while (num < this.m_roleInfoList.Count)
         {
             roleInfo = this.m_roleInfoList[num];
             if ((roleInfo != null) && (roleInfo.m_roleType == roleType))
             {
                 this.Remove(roleInfo);
             }
             else
             {
                 num++;
             }
         }
     }
 }
        public void RemoveRoleInfoByType(enROLEINFO_TYPE roleType)
        {
            if (this.m_roleInfoList == null || this.m_roleInfoList.get_Count() <= 0)
            {
                return;
            }
            int i = 0;

            while (i < this.m_roleInfoList.get_Count())
            {
                CRoleInfo cRoleInfo = this.m_roleInfoList.get_Item(i);
                if (cRoleInfo != null && cRoleInfo.m_roleType == roleType)
                {
                    this.Remove(cRoleInfo);
                }
                else
                {
                    i++;
                }
            }
        }
Esempio n. 5
0
        public CRoleInfo CreateRoleInfo(enROLEINFO_TYPE type, ulong uuID)
        {
            ulong num = this.s_roleInfoContainer.AddRoleInfoByType(type, uuID);

            return(this.GetRoleInfoByUUID(num));
        }
Esempio n. 6
0
        public CRoleInfo CreateRoleInfo(enROLEINFO_TYPE type, ulong uuID, int logicWorldID = 0)
        {
            ulong uuID2 = this.s_roleInfoContainer.AddRoleInfoByType(type, uuID, logicWorldID);

            return(this.GetRoleInfoByUUID(uuID2));
        }