예제 #1
0
 public ResearchManager()
 {
     Name             = "Research";
     Instance         = this;
     ThisMonthsBudget = HighLogic.CurrentGame.Parameters.Career.StartingFunds * FundingAllocation;
     Debug.Log("[Bureaucracy]: Research Manager Ready");
 }
예제 #2
0
 public ScienceEvent(ConfigNode dataNode, ResearchManager passingManager)
 {
     float.TryParse(dataNode.GetValue("originalScience"), out originalScience);
     float.TryParse(dataNode.GetValue("scienceLeftToProcess"), out scienceLeftToProcess);
     ScienceSubject = dataNode.GetValue("scienceSubject");
     UiName         = dataNode.GetValue("UiName");
     bool.TryParse(dataNode.GetValue("isComplete"), out IsComplete);
     ParentManager = passingManager;
 }
예제 #3
0
 // ReSharper disable once SuggestBaseTypeForParameter
 public ScienceEvent(float science, ScienceSubject subject, ResearchManager passingManager)
 {
     scienceLeftToProcess = science;
     originalScience      = science;
     ScienceSubject       = subject.id;
     UiName        = subject.title;
     ParentManager = passingManager;
     Debug.Log("[Bureaucracy]: Added new event: " + ScienceSubject);
 }