Пример #1
0
    /// <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);
            }
        }
    }
Пример #2
0
 private void FillSoldierData(CombatLoactionType type)
 {
     SoldierDC.GetSoldiers(ref soldierList, type);
 }
Пример #3
0
 public void RefreshSoldierUI(CombatLoactionType type)
 {
     FillSoldierData(type);
     CreateList();
 }