/// <summary> /// Set what inventory to use when rendering /// </summary> public void SetInventory(IInventoryManager inventoryManager, InventoryRenderMode renderMode) { OnDisable(); inventory = inventoryManager ?? throw new ArgumentNullException(nameof(inventoryManager)); _renderMode = renderMode; OnEnable(); }
/// <summary> /// CTOR /// </summary> public TestProvider(InventoryRenderMode renderMode = InventoryRenderMode.Grid, int maximumAlowedItemCount = -1) { inventoryRenderMode = renderMode; _maximumAlowedItemCount = maximumAlowedItemCount; }
/// <summary> /// CTOR /// </summary> public InventoryProvider(InventoryRenderMode renderMode, int maximumAlowedItemCount = -1, ItemType allowedItem = ItemType.Any) { inventoryRenderMode = renderMode; _maximumAlowedItemCount = maximumAlowedItemCount; _allowedItem = allowedItem; }