コード例 #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
ファイル: GameSession.cs プロジェクト: matigramirez/Imgeneus
        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
        }
コード例 #3
0
 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)
 {
 }