Exemplo n.º 1
0
 public void RemoveTierFromUpgradeOptions(Tier tier, Tier toRemove) => GetUpgradeOptions(tier).AddTier(toRemove);
Exemplo n.º 2
0
 public IEnumerable <Tier> GetNext(Tier tier) => GetUpgradeOptions(tier)?.NextTiers ?? Array.Empty <Tier>();
Exemplo n.º 3
0
 public void AddTierToUpgradeOptions(Tier tier, Tier toAdd) => GetUpgradeOptions(tier).AddTier(toAdd);
Exemplo n.º 4
0
 public UpgradeOptions GetUpgradeOptions(Tier tier) => _upgradeOptions.FirstOrDefault(x => x.Tier.Equals(tier));