public void RegionLoaded(Scene scene) { if (!m_Enabled) return; if (!m_Registered) { m_Registered = true; m_log.Info("[HypergridService]: Starting..."); ISimulationService simService = scene.RequestModuleInterface<ISimulationService>(); m_HypergridHandler = new GatekeeperServiceInConnector(m_Config, MainServer.Instance, simService); new UserAgentServerConnector(m_Config, MainServer.Instance); new HeloServiceInConnector(m_Config, MainServer.Instance, "HeloService"); } scene.RegisterModuleInterface<IGatekeeperService>(m_HypergridHandler.GateKeeper); }
public void RegionLoaded(Scene scene) { if (!m_Enabled) return; if (!m_Registered) { m_Registered = true; m_log.Info("[HypergridService]: Starting..."); ISimulationService simService = scene.RequestModuleInterface<ISimulationService>(); IFriendsSimConnector friendsConn = scene.RequestModuleInterface<IFriendsSimConnector>(); Object[] args = new Object[] { m_Config }; // IFriendsService friendsService = ServerUtils.LoadPlugin<IFriendsService>(m_LocalServiceDll, args) ServerUtils.LoadPlugin<IFriendsService>(m_LocalServiceDll, args); m_HypergridHandler = new GatekeeperServiceInConnector(m_Config, MainServer.Instance, simService); m_UASHandler = new UserAgentServerConnector(m_Config, MainServer.Instance, friendsConn); new HeloServiceInConnector(m_Config, MainServer.Instance, "HeloService"); new HGFriendsServerConnector(m_Config, MainServer.Instance, "HGFriendsService", friendsConn); } scene.RegisterModuleInterface<IGatekeeperService>(m_HypergridHandler.GateKeeper); scene.RegisterModuleInterface<IUserAgentService>(m_UASHandler.HomeUsersService); }