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