コード例 #1
0
        public override void OnStart()
        {
            _packetSender.Start(false);

            _matchMaker.Start();
            var listeners           = GetListeners();
            var shamanMessageSender = _messageSenderFactory.Create(_packetSender);

            foreach (var listener in listeners)
            {
                listener.Initialize(_matchMaker, shamanMessageSender, _roomManager, _matchMakingGroupManager, Config.AuthSecret);
            }
        }
コード例 #2
0
        public override void OnStart()
        {
            _packetSender.Start();

            Logger.Info($"Game server started...");

            var listeners           = GetListeners();
            var shamanMessageSender = _messageSenderFactory.Create(_packetSender);

            foreach (var listener in listeners)
            {
                listener.Initialize(_roomManager, shamanMessageSender, Config.AuthSecret);
            }
        }