コード例 #1
0
    public int GetCardsCount(CardType type)
    {
        Init();
        DepartmentResources rc = controller.GetResourcesForType(type);

        return(rc != null ? rc.Cards.Count : 0);
    }
コード例 #2
0
 private void CheckChanges(DepartmentDisplay dep, DepartmentResources resources)
 {
     if (resources.Type == _staffType)
     {
         int num = resources.Cards.Count;
         for (int i = 0; i < _cardsCountProgress.Count; i++)
         {
             if (num >= _cardsCountProgress[i])
             {
                 dep.ChangeHumanoidsCount(i + 1);
             }
         }
     }
 }
コード例 #3
0
 public void OnResourcesChanged(DepartmentResources resources)
 {
     window.OnResourcesChanged(resources.General, resources.Available, resources.Type);
     window.UpdateCards(resources.Type, resources.Cards);
 }