public UpgradeSelector(IPilot pilot, IUpgradeSlot slot, IEnumerable <IUpgrade> uniquesTaken) { Pilot = pilot; Slot = slot; UniquesTaken = uniquesTaken; SlotsAvaiable = pilot.Upgrades.Where(x => x.Upgrade.Name == "" && x.UpgradeType.Equals(slot.UpgradeType)).Count(); }
public bool Equals(IUpgradeSlot other) { return(this.UpgradeType.Equals(other.UpgradeType) && CostReduction == other.CostReduction && CostRestriction == other.CostRestriction && Upgrade.Equals(other.Upgrade)); }
public UpgradeSlotViewModel(IUpgradeSlot upgradeSlot) { UpgradeSlot = upgradeSlot; }
public int CompareTo(IUpgradeSlot other) { return(this.UpgradeType.CompareTo(other.UpgradeType)); }
private void SetSelectableUpgrade(IUpgradeSlot selected) { SelectedAddedUpgrade = selected; }
private int GetPilotStatModFromContainer(IUpgradeSlot container, string key) { container.Upgrade.PilotAttributeModifiers.TryGetValue(key, out int pilotstat); return(pilotstat); }
public UpgradeSlotViewModel(IUpgradeSlot upgradeSlot) { UpgradeSlot = upgradeSlot; IsEnabled = true; }