コード例 #1
0
ファイル: Bootstrap.cs プロジェクト: oscarafdev/RainbowMod
        public void Start()
        {
            string FougeriteDirectoryConfig = Path.Combine(Util.GetServerFolder(), "FougeriteDirectory.cfg");

            Config.Init(FougeriteDirectoryConfig);
            Logger.Init();
            _timergo = new GameObject();
            _timergo.AddComponent <CTimerHandler>();
            UnityEngine.Object.DontDestroyOnLoad(_timergo);
            CTimer.StartWatching();

            Rust.Steam.Server.SetModded();
            Rust.Steam.Server.Official = false;

            if (ApplyOptions())
            {
                //ModuleManager.LoadModules();
                LuaPluginLoader.GetInstance();
                CSharpPluginLoader.GetInstance();
                JavaScriptPluginLoader.GetInstance();
                PythonPluginLoader.GetInstance();
                Fougerite.Hooks.ServerStarted();
                Fougerite.ShutdownCatcher.Hook();
            }
            SQLiteConnector.GetInstance.Setup();
        }
コード例 #2
0
        public void Start()
        {
            string FougeriteDirectoryConfig = Path.Combine(Util.GetServerFolder(), "FougeriteDirectory.cfg");

            Config.Init(FougeriteDirectoryConfig);
            Logger.Init();

            Rust.Steam.Server.SetModded();
            Rust.Steam.Server.Official = false;

            if (ApplyOptions())
            {
                //ModuleManager.LoadModules();
                LuaPluginLoader.GetInstance();
                CSharpPluginLoader.GetInstance();
                JavaScriptPluginLoader.GetInstance();
                PythonPluginLoader.GetInstance();
                Fougerite.Hooks.ServerStarted();
                Fougerite.ShutdownCatcher.Hook();
            }
            SQLiteConnector.GetInstance.Setup();
        }