public override void Initialize(InsightServer _server, ModuleManager _manager) { Debug.Log("[ChatServer] - Initialization"); server = _server; authModule = _manager.GetModule <ServerAuthentication>(); gameModule = _manager.GetModule <GameMasterManager>(); RegisterHandlers(); }
public override void Initialize(InsightServer server, ModuleManager manager) { this.server = server; if (manager.GetModule <ServerAuthentication>() != null) { authModule = manager.GetModule <ServerAuthentication>(); } RegisterHandlers(); }
public override void Initialize(InsightServer insight, ModuleManager manager) { server = insight; this.manager = manager; authModule = this.manager.GetModule <ServerAuthentication>(); gameManager = this.manager.GetModule <ServerGameManager>(); masterSpawner = this.manager.GetModule <MasterSpawner>(); RegisterHandlers(); InvokeRepeating("InvokedUpdate", MatchMakingPollRate, MatchMakingPollRate); }
public override void Initialize(InsightServer insight, ModuleManager manager) { server = insight; authModule = manager.GetModule <ServerAuthentication>(); gameManager = manager.GetModule <ServerGameManager>(); masterSpawner = manager.GetModule <MasterSpawner>(); RegisterHandlers(); server.transport.OnServerDisconnected += HandleDisconnect; InvokeRepeating("InvokedUpdate", MatchMakingPollRate, MatchMakingPollRate); }