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); }
//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); }
public bool AddPlayerAttr(Player_Str player) { m_PlayerList.Add(player); return(true); }