Beispiel #1
0
        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();
        }
Beispiel #2
0
        /// <summary>
        /// Loads this extension
        /// </summary>
        public override void Load()
        {
            // Setup Lua instance
            InitializePython();

            // Register the loader
            loader = new PythonPluginLoader(PythonEngine, this);
            Manager.RegisterPluginLoader(loader);
        }
Beispiel #3
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();
        }