internal void AddModule(IServerGameFactory game) { if (_games.Values.ToArray().Where(g => g.Factory.Name == game.Name).Any()) { throw new ArgumentException("Game with name " + game.Name + " already exists!"); } var wrapper = new GameWrapper(game); _games.Add(wrapper.Id, wrapper); }
public GameWrapper(IServerGameFactory game) { Factory = game; }
public void AddGame(IServerGameFactory game) { Data.AddModule(game); }