コード例 #1
0
        public override void Initialize(InsightServer _server, ModuleManager _manager)
        {
            Debug.Log("[ChatServer] - Initialization");
            server = _server;

            authModule = _manager.GetModule <ServerAuthentication>();
            gameModule = _manager.GetModule <GameMasterManager>();

            RegisterHandlers();
        }
コード例 #2
0
        public override void Initialize(InsightServer server, ModuleManager manager)
        {
            this.server = server;

            if (manager.GetModule <ServerAuthentication>() != null)
            {
                authModule = manager.GetModule <ServerAuthentication>();
            }

            RegisterHandlers();
        }
コード例 #3
0
ファイル: ServerMatchMaking.cs プロジェクト: uweenukr/Insight
        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);
        }
コード例 #4
0
        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);
        }