public Room(Guid id, int max) { if (max > 1) { this._maxPlayer = max; this._players = new List <Guid>(); this._id = id; this._game = null; } else { throw new Exception("Maximum user must be morethan 1!"); } }
public void StartGame(string gameName, GameConfig config = null, IPlayerRepository repo = null) { _game = GameFactory.Create(gameName, _players, repo, config, ""); }
public Room() { this._game = null; this._maxPlayer = 0; this._players = new List <Guid>(); }