public LobbyConnection(LocalConnection connection, MatchServer matchServer, LogOnService logOnService) { _connection = connection; _logOnService = logOnService; _registrationService = new RegistrationService(); AuthenticationService = new AuthenticationService(); MatchServer = matchServer; }
public Match(string seed, IEnumerable<string> accountIds, int lobby, MatchType matchType, LogOnService logOnService) { _lobby = lobby; _matchType = matchType; _logOnService = logOnService; _shuffler = new WallGenerator(seed); _firstOyaIndex = _shuffler.GetWall(0).First().Id % 4; var playerIndex = 0; foreach (var player in accountIds) { _players.Add(player, new PlayerStatus(playerIndex)); playerIndex += 1; } _stateMachine = new StateMachine(new PlayersConnectingState(this)); _stateMachine.Finished += OnFinished; }
public MatchServer(ISeedGenerator seedGenerator, LogOnService logOnService) { _seedGenerator = seedGenerator; _logOnService = logOnService; }
public LocalLobbyServer(ISeedGenerator seedGenerator) { _logOnService = new LogOnService(); _matchServer = new MatchServer(seedGenerator, _logOnService); }