Example #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;
 }
Example #2
0
 public WorldServer(ILogger <WorldServer> logger, IOptions <ImgeneusServerOptions> tcpConfiguration, IServiceProvider serviceProvider, IOptions <WorldConfiguration> worldConfiguration, IInterServerClient interClient, IGameWorld gameWorld)
     : base(tcpConfiguration.Value, serviceProvider)
 {
     _logger             = logger;
     _worldConfiguration = worldConfiguration.Value;
     _interClient        = interClient;
     _gameWorld          = gameWorld;
 }
Example #3
0
 public WorldServer(ILogger <WorldServer> logger, IOptions <WorldConfiguration> configuration, IGameWorld gameWorld, IInterServerClient interClient, ISelectionScreenFactory selectionScreenFactory)
     : base(new ServerConfiguration(configuration.Value.Host, configuration.Value.Port, configuration.Value.MaximumNumberOfConnections), logger)
 {
     _logger                 = logger;
     _worldConfiguration     = configuration.Value;
     _gameWorld              = gameWorld;
     _interClient            = interClient;
     _selectionScreenFactory = selectionScreenFactory;
 }