예제 #1
0
        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);
        }
예제 #2
0
        private static SettingsPSI LoadPsiSettings(string path = "ColonistBarPSIKF.xml")
        {
            string      configFolder = Path.GetDirectoryName(GenFilePaths.ModsConfigFilePath);
            SettingsPSI result       = XmlLoader.ItemFromXmlFile <SettingsPSI>(configFolder + "/" + path);

            return(result);
        }
예제 #3
0
        // ReSharper disable once UnusedMember.Global
        public void Start()
        {
            ColBarSettings  = LoadBarSettings();
            PsiSettings     = LoadPsiSettings();
            _lastStatUpdate = -5000;

            //PSI
            OnLevelWasLoaded(0);
            enabled = true;
        }
예제 #4
0
 public Controller(ModContentPack content)
     : base(content)
 {
     psiSettings = this.GetSettings <SettingsPSI>();
     barSettings = this.GetSettings <SettingsColonistBar>();
 }