private GameBuilder() { _serviceCollection = new ServiceCollection(); _commands = new CommandMap(); _globalCommands = new CommandMap(); _areas = new HashSet <Type>(); }
public Game(ICommander console, IServiceProvider gameServices, CommandMap allCommands, CommandMap globalCommands, ISet <Type> areas, IGameOptions gameOptions) { Commander = console; GameOptions = gameOptions; _gameServices = gameServices; _allCommands = allCommands; _globalCommands = globalCommands; _areas = areas; }