Пример #1
0
 private GameBuilder()
 {
     _serviceCollection = new ServiceCollection();
     _commands          = new CommandMap();
     _globalCommands    = new CommandMap();
     _areas             = new HashSet <Type>();
 }
Пример #2
0
 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;
 }