示例#1
0
 public List <int> GetCardIdListBySideAndStatus(pb.BattleSide side, PaiStatus status)
 {
     for (int i = 0; i < _playerPaiInfoList.Count; i++)
     {
         if (_playerPaiInfoList[i].Side == side)
         {
             return(_playerPaiInfoList[i].GetPaiIdListByStatus(status));
         }
     }
     return(null);
 }
示例#2
0
    public List <Pai> GetPaiListByStatus(PaiStatus status)
    {
        List <Pai> list = new List <Pai>();

        for (int i = 0; i < _paiList.Count; i++)
        {
            if (_paiList[i].Status == status)
            {
                list.Add(_paiList[i]);
            }
        }
        return(list);
    }