public NetworkServer(string host = "localhost", int port = 8080) { inputService = new ServerInputService(); sessionService = new SessionService(inputService); this.host = host; this.port = port; }
public ServerGameState(int newSessionId, ServerInputService inputService) { this.newSessionId = newSessionId; this.inputService = inputService; levelFactory = new RandomLevelFactory(); }
public ServerInputController(Level level, int sessionId, ServerInputService serverInputService) { this.level = level; this.sessionId = sessionId; this.serverInputService = serverInputService; }