Beispiel #1
0
        public bool ClearPlayerDrop(Player_Str player)
        {
            for (int i = 0; i < m_PlayerList.Count; i++)
            {
                if (m_PlayerList[i].code == player.code)
                {
                    player.drop_enable = false;
                    m_PlayerList[i]    = player;
                    return(true);
                }
            }

            return(false);
        }
Beispiel #2
0
 //role_XX ID   此处把 role_XX称作id
 public bool GetAttrById(string id, out Player_Str player)
 {
     foreach (var item in m_PlayerList)
     {
         if (CFormat.ToSimplified(item.code) == id)
         {
             player = item;
             return(true);
         }
     }
     player      = new Player_Str();
     player.more = new List <string>();
     return(false);
 }
Beispiel #3
0
 public bool AddPlayerAttr(Player_Str player)
 {
     m_PlayerList.Add(player);
     return(true);
 }