public UseSelfCommand( ISectorManager sectorManager, ISectorUiState playerState, IInventoryState inventoryState) : base(sectorManager, playerState) { _inventoryState = inventoryState; }
public UseSelfCommand(IGameLoop gameLoop, ISectorManager sectorManager, IPlayerState playerState, IInventoryState inventoryState) : base(gameLoop, sectorManager, playerState) { _inventoryState = inventoryState; }
public EquipCommand(IGameLoop gameLoop, ISectorManager sectorManager, ISectorUiState playerState, IInventoryState inventoryState) : base(gameLoop, sectorManager, playerState) { _inventoryState = inventoryState; }
public EquipCommand( IPlayer player, ISectorUiState playerState, IInventoryState inventoryState) : base(playerState) { _player = player; _inventoryState = inventoryState; }
public GameLoopUpdater( IPlayer player, IAnimationBlockerService commandBlockerService, IInventoryState inventoryState, ISectorUiState playerState) { _commandBlockerService = commandBlockerService ?? throw new ArgumentNullException(nameof(commandBlockerService)); _inventoryState = inventoryState ?? throw new ArgumentNullException(nameof(inventoryState)); _playerState = playerState ?? throw new ArgumentNullException(nameof(playerState)); _player = player ?? throw new ArgumentNullException(nameof(player)); }
public GlobeSelectionScreen(Game game, SpriteBatch spriteBatch) : base(game) { _spriteBatch = spriteBatch; var serviceProvider = ((LivGame)game).ServiceProvider; _uiContentStorage = serviceProvider.GetRequiredService <IUiContentStorage>(); _globeInitializer = serviceProvider.GetRequiredService <IGlobeInitializer>(); _globeLoop = serviceProvider.GetRequiredService <IGlobeLoopUpdater>(); _commandLoop = serviceProvider.GetRequiredService <ICommandLoopUpdater>(); _playerState = serviceProvider.GetRequiredService <ISectorUiState>(); _inventoryState = serviceProvider.GetRequiredService <IInventoryState>(); var buttonTexture = _uiContentStorage.GetButtonTexture(); var font = _uiContentStorage.GetButtonFont(); _generateButton = new TextButton(UiResources.GenerateGlobeButtonTitle, buttonTexture, font, new Rectangle(150, 150, BUTTON_WIDTH, BUTTON_HEIGHT)); _generateButton.OnClick += GenerateButtonClickHandlerAsync; }
public InventoryService(ICacheController cacheStrategy, IDictionary <string, Queue <IItem> > dictionary, IInventoryState state) { if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } this.cacheStrategy = cacheStrategy; this.itemDictonary = new ReadOnlyDictionary <string, Queue <IItem> >(dictionary); this.InventoryState = state; }
public InventoryServiceBuilder(IInventoryServiceStrategy strategy) { this.inventoryServiceStrategy = strategy; this.cacheStrategy = NotImplementedCacheController.GetInstance; this.inventoryState = InitialzedInventoryState.GetInstance; }