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