public int GetCardsCount(CardType type) { Init(); DepartmentResources rc = controller.GetResourcesForType(type); return(rc != null ? rc.Cards.Count : 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); } } } }
public void OnResourcesChanged(DepartmentResources resources) { window.OnResourcesChanged(resources.General, resources.Available, resources.Type); window.UpdateCards(resources.Type, resources.Cards); }