internal static SettingsPSI LoadPSISettings([NotNull] string path = "ColonistBar_PSIKF.xml") { string configFolder = Path.GetDirectoryName(GenFilePaths.ModsConfigFilePath); SettingsPSI __result = DirectXmlLoader.ItemFromXmlFile <SettingsPSI>(configFolder + "/" + path); return(__result); }
private static SettingsPSI LoadPsiSettings(string path = "ColonistBarPSIKF.xml") { string configFolder = Path.GetDirectoryName(GenFilePaths.ModsConfigFilePath); SettingsPSI result = XmlLoader.ItemFromXmlFile <SettingsPSI>(configFolder + "/" + path); return(result); }
// ReSharper disable once UnusedMember.Global public void Start() { ColBarSettings = LoadBarSettings(); PsiSettings = LoadPsiSettings(); _lastStatUpdate = -5000; //PSI OnLevelWasLoaded(0); enabled = true; }
public Controller(ModContentPack content) : base(content) { psiSettings = this.GetSettings <SettingsPSI>(); barSettings = this.GetSettings <SettingsColonistBar>(); }