예제 #1
0
        public bool BeginResearch(Research research)
        {
            var success = !ResearchedTechnologies.Contains(research) &&
                          (research == System.RootResearch ||
                           ResearchedTechnologies.Any(r => r.Children.Contains(research)));

            if (success)
            {
                CurrentResearch = research;
            }

            return(success);
        }
예제 #2
0
 public ResearchSystem(Research rootResearch)
 {
     RootResearch = rootResearch;
 }