예제 #1
0
 public HandshakeHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IWorldServer server, IInterServerClient interClient, ISelectionScreenManager selectionScreenManager) : base(packetFactory, gameSession)
 {
     _server                         = server;
     _interClient                    = interClient;
     _selectionScreenManager         = selectionScreenManager;
     _interClient.OnSessionResponse += InitGameSession;
 }
예제 #2
0
        public GameSession(ILogger <GameSession> logger, IGamePacketFactory packetFactory, IGameWorld gameWorld, ISelectionScreenManager selectionScreenManager)
        {
            _logger                 = logger;
            _packetFactory          = packetFactory;
            _gameWorld              = gameWorld;
            _selectionScreenManager = selectionScreenManager;

            _logoutTimer.Elapsed += LogoutTimer_Elapsed;
#if DEBUG
            _logger.LogDebug("GameSession {hashcode} created", GetHashCode());
#endif
        }
 public RestoreCharacterHandler(IGamePacketFactory packetFactory, IGameSession gameSession, ISelectionScreenManager selectionScreenManager) : base(packetFactory, gameSession)
 {
     _selectionScreenManager = selectionScreenManager;
 }
예제 #4
0
 public LogOutHandler(IGamePacketFactory packetFactory, IGameSession gameSession, ISelectionScreenManager selectionScreenManager) : base(packetFactory, gameSession)
 {
 }