/// <summary> /// 获取玩家炮弹兵 /// </summary> public static void GetSoldiers(ref List <SoldierInfo> l, CombatLoactionType type) { if (l == null) { l = new List <SoldierInfo>(); } l.Clear(); foreach (SoldierInfo s in m_PlayerSoldiers.Values) { int value = (int)type; int v = (1 << s.m_loaction); if ((value & v) == v) { l.Add(s); } } }
private void FillSoldierData(CombatLoactionType type) { SoldierDC.GetSoldiers(ref soldierList, type); }
public void RefreshSoldierUI(CombatLoactionType type) { FillSoldierData(type); CreateList(); }