public ResearchManager() { Name = "Research"; Instance = this; ThisMonthsBudget = HighLogic.CurrentGame.Parameters.Career.StartingFunds * FundingAllocation; Debug.Log("[Bureaucracy]: Research Manager Ready"); }
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; }
// 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); }