示例#1
0
 /// <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();
 }
示例#2
0
 /// <summary>
 /// CTOR
 /// </summary>
 public TestProvider(InventoryRenderMode renderMode = InventoryRenderMode.Grid, int maximumAlowedItemCount = -1)
 {
     inventoryRenderMode     = renderMode;
     _maximumAlowedItemCount = maximumAlowedItemCount;
 }
示例#3
0
 /// <summary>
 /// CTOR
 /// </summary>
 public InventoryProvider(InventoryRenderMode renderMode, int maximumAlowedItemCount = -1, ItemType allowedItem = ItemType.Any)
 {
     inventoryRenderMode     = renderMode;
     _maximumAlowedItemCount = maximumAlowedItemCount;
     _allowedItem            = allowedItem;
 }