示例#1
0
        public void Init(object gameInstance)
        {
            settings = new MySettings();
            settings.LoadSettings();
            settings.SaveSettings();

            updater = new VersionCheck();
            MyLog.Default.WriteLine("SEWorldGenPlugin - Version is " + updater.GetVersion());
            MyLog.Default.WriteLine("SEWorldGenPlugin - Latest Version is " + updater.GetNewestVersion());

            MyEntity.MyProceduralWorldGeneratorTrackEntityExtCallback += EntityExtension.ProceduralGeneratorTracking;

            MyPerGameSettings.GUI.MainMenu = typeof(PluginMainMenu);
            MyPerGameSettings.GUI.EditWorldSettingsScreen = typeof(PluginWorldSettings);
            MyPerGameSettings.GUI.AdminMenuScreen         = typeof(PluginAdminMenu);
        }
示例#2
0
        /// <summary>
        /// Called, when SE initializes the plugin. Loads the global settings, sets the procedural
        /// generator entity tracking extension method up, and replaces the GUI screens of SE if the plugin
        /// ones.
        /// </summary>
        /// <param name="gameInstance">Isntance of the game</param>
        public void Init(object gameInstance)
        {
            MyPluginLog.Log("Begin SEWorldGenPlugin init");

            settings = new MySettings();
            settings.LoadSettings();
            settings.SaveSettings();

            updater = new VersionCheck();
            MyPluginLog.Log("Version is " + updater.GetVersion());
            MyPluginLog.Log("Latest Version is " + updater.GetNewestVersion());

            MyPerGameSettings.GUI.MainMenu = typeof(MyPluginMainMenu);
            MyPerGameSettings.GUI.EditWorldSettingsScreen = typeof(PluginWorldSettings);
            MyPerGameSettings.GUI.AdminMenuScreen         = typeof(MyPluginAdminMenu);

            MyPluginLog.Log("Init completed");
        }
示例#3
0
        /// <summary>
        /// Called, when SE initializes the plugin. Loads the global settings, sets the procedural
        /// generator entity tracking extension method up, and replaces the GUI screens of SE if the plugin
        /// ones.
        /// </summary>
        /// <param name="gameInstance">Isntance of the game</param>
        public void Init(object gameInstance)
        {
            PluginLog.Log("Begin init");

            settings = new MySettings();
            settings.LoadSettings();
            settings.SaveSettings();

            updater = new VersionCheck();
            PluginLog.Log("Version is " + updater.GetVersion());
            PluginLog.Log("Latest Version is " + updater.GetNewestVersion());

            MyEntity.MyProceduralWorldGeneratorTrackEntityExtCallback += EntityExtension.ProceduralGeneratorTracking;

            MyPerGameSettings.GUI.MainMenu = typeof(PluginMainMenu);
            MyPerGameSettings.GUI.EditWorldSettingsScreen = typeof(PluginWorldSettings);
            MyPerGameSettings.GUI.AdminMenuScreen         = typeof(PluginAdminMenu);

            PluginLog.Log("Init completed");
        }
示例#4
0
 static MySettings()
 {
     Static = new MySettings();
     Static.LoadSettings();
 }