public void AddRegion(Scene Sceneworld) { m_log.Info("[" + ScriptEngineName + "]: ScriptEngine initializing"); m_Scene = Sceneworld; // Make sure we have config if (ConfigSource.Configs[ScriptEngineName] == null) { ConfigSource.AddConfig(ScriptEngineName); } ScriptConfigSource = ConfigSource.Configs[ScriptEngineName]; m_enabled = ScriptConfigSource.GetBoolean("Enabled", true); if (!m_enabled) { return; } // Create all objects we'll be using m_EventQueueManager = new EventQueueManager(this); m_EventManager = new EventManager(this, true); // We need to start it m_ScriptManager = new ScriptManager(this); m_ScriptManager.Setup(); m_AppDomainManager = new AppDomainManager(this); if (m_MaintenanceThread == null) { m_MaintenanceThread = new MaintenanceThread(); } m_log.Info("[" + ScriptEngineName + "]: Reading configuration " + "from config section \"" + ScriptEngineName + "\""); ReadConfig(); m_Scene.StackModuleInterface <IScriptModule>(this); }
public void AddRegion(Scene Sceneworld) { m_log.Info("[" + ScriptEngineName + "]: ScriptEngine initializing"); m_Scene = Sceneworld; // Make sure we have config if (ConfigSource.Configs[ScriptEngineName] == null) ConfigSource.AddConfig(ScriptEngineName); ScriptConfigSource = ConfigSource.Configs[ScriptEngineName]; m_enabled = ScriptConfigSource.GetBoolean("Enabled", true); if (!m_enabled) return; // Create all objects we'll be using m_EventQueueManager = new EventQueueManager(this); m_EventManager = new EventManager(this, true); // We need to start it m_ScriptManager = new ScriptManager(this); m_ScriptManager.Setup(); m_AppDomainManager = new AppDomainManager(this); if (m_MaintenanceThread == null) m_MaintenanceThread = new MaintenanceThread(); m_log.Info("[" + ScriptEngineName + "]: Reading configuration "+ "from config section \"" + ScriptEngineName + "\""); ReadConfig(); m_Scene.StackModuleInterface<IScriptModule>(this); }