private void ShipyardButton_Click(object sender, EventArgs e) { if (ShipyardButton.ForeColor != _foreColorActive) { return; } SoundEffect.Play(ESounds.mousedown); _type = ETechType.ShipyardConstruction; RefreshItems(); }
private void ExpansionButton_Click(object sender, EventArgs e) { if (ExpansionButton.ForeColor != _foreColorActive) { return; } SoundEffect.Play(ESounds.mousedown); _type = ETechType.Expansion; RefreshItems(); }
public List <TechItem> ResearchableItemsNot(ETechType type) { var unlockedIds = CompletedTechIds(); var items = (from i in TechItems where !i.Completed && i.Active && i.Type != type && (i.DependsOnIds == null || i.DependsOnIds.All(unlockedIds.Contains)) orderby i.Id ascending select i).ToList(); return(items); }
private void ConstructionButton_Click(object sender, EventArgs e) { SoundEffect.Play(ESounds.mousedown); _type = ETechType.Construction; RefreshItems(); }