示例#1
0
 private void ShipyardButton_Click(object sender, EventArgs e)
 {
     if (ShipyardButton.ForeColor != _foreColorActive)
     {
         return;
     }
     SoundEffect.Play(ESounds.mousedown);
     _type = ETechType.ShipyardConstruction;
     RefreshItems();
 }
示例#2
0
 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);
        }
示例#4
0
 private void ConstructionButton_Click(object sender, EventArgs e)
 {
     SoundEffect.Play(ESounds.mousedown);
     _type = ETechType.Construction;
     RefreshItems();
 }