Inventory Engine
v3.8
|
This test class lets you play with the Inventory API. More...
Inherits MonoBehaviour.
Public Attributes | |
InventoryItem | AddItem |
an item to add when pressing the AddItemTest button More... | |
int | AddItemQuantity |
the quantity of the item to add More... | |
Inventory | AddItemInventory |
the inventory to which to add the item More... | |
bool | AddItemTestButton |
a test button More... | |
InventoryItem | AddItemAtItem |
the inventory item to add at a specific index More... | |
int | AddItemAtQuantity |
the quantity of item to add More... | |
int | AddItemAtIndex |
the index at which the item should be added More... | |
Inventory | AddItemAtInventory |
the inventory to add items to More... | |
bool | AddItemAtTestButton |
a test button More... | |
int | MoveItemOrigin |
the index from which to move items More... | |
int | MoveItemDestination |
the index to which we want to move the origin index's item More... | |
Inventory | MoveItemInventory |
the inventory in which to move items More... | |
bool | MoveItemTestButton |
a test button More... | |
int | MoveItemToInventoryOriginIndex |
the index from which to move items More... | |
int | MoveItemToInventoryDestinationIndex = -1 |
the index to which we want to move the origin index's item More... | |
Inventory | MoveItemToOriginInventory |
the inventory in which to move an item from More... | |
Inventory | MoveItemToDestinationInventory |
the inventory in which to move an item to More... | |
bool | MoveItemToInventoryTestButton |
a test button More... | |
int | RemoveItemIndex |
the index at which to remove items More... | |
int | RemoveItemQuantity |
the quantity to remove at the specified index More... | |
Inventory | RemoveItemInventory |
the inventory from which to remove an item More... | |
bool | RemoveItemTestButton |
a test button More... | |
Inventory | EmptyTargetInventory |
the inventory to empty More... | |
bool | EmptyInventoryTestButton |
a test button More... | |
Protected Member Functions | |
virtual void | AddItemTest () |
Test method to add an item More... | |
virtual void | AddItemAtTest () |
Test method to add an item at the specified index More... | |
virtual void | MoveItemTest () |
Test method to move an item from index A to B More... | |
virtual void | MoveItemToInventory () |
Test method to move an item from index A to B More... | |
virtual void | RemoveItemTest () |
Test method to remove an item at the specified index More... | |
virtual void | EmptyInventoryTest () |
Test method to empty the target inventory More... | |
This test class lets you play with the Inventory API.
You can see it in action in the PixelRogueRoom2 demo scene
|
protectedvirtual |
Test method to add an item at the specified index
|
protectedvirtual |
Test method to add an item
|
protectedvirtual |
Test method to empty the target inventory
|
protectedvirtual |
Test method to move an item from index A to B
|
protectedvirtual |
Test method to move an item from index A to B
|
protectedvirtual |
Test method to remove an item at the specified index
InventoryItem MoreMountains.InventoryEngine.InventoryTester.AddItem |
an item to add when pressing the AddItemTest button
int MoreMountains.InventoryEngine.InventoryTester.AddItemAtIndex |
the index at which the item should be added
Inventory MoreMountains.InventoryEngine.InventoryTester.AddItemAtInventory |
the inventory to add items to
InventoryItem MoreMountains.InventoryEngine.InventoryTester.AddItemAtItem |
the inventory item to add at a specific index
int MoreMountains.InventoryEngine.InventoryTester.AddItemAtQuantity |
the quantity of item to add
bool MoreMountains.InventoryEngine.InventoryTester.AddItemAtTestButton |
a test button
Inventory MoreMountains.InventoryEngine.InventoryTester.AddItemInventory |
the inventory to which to add the item
int MoreMountains.InventoryEngine.InventoryTester.AddItemQuantity |
the quantity of the item to add
bool MoreMountains.InventoryEngine.InventoryTester.AddItemTestButton |
a test button
bool MoreMountains.InventoryEngine.InventoryTester.EmptyInventoryTestButton |
a test button
Inventory MoreMountains.InventoryEngine.InventoryTester.EmptyTargetInventory |
the inventory to empty
int MoreMountains.InventoryEngine.InventoryTester.MoveItemDestination |
the index to which we want to move the origin index's item
Inventory MoreMountains.InventoryEngine.InventoryTester.MoveItemInventory |
the inventory in which to move items
int MoreMountains.InventoryEngine.InventoryTester.MoveItemOrigin |
the index from which to move items
bool MoreMountains.InventoryEngine.InventoryTester.MoveItemTestButton |
a test button
Inventory MoreMountains.InventoryEngine.InventoryTester.MoveItemToDestinationInventory |
the inventory in which to move an item to
int MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventoryDestinationIndex = -1 |
the index to which we want to move the origin index's item
int MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventoryOriginIndex |
the index from which to move items
bool MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventoryTestButton |
a test button
Inventory MoreMountains.InventoryEngine.InventoryTester.MoveItemToOriginInventory |
the inventory in which to move an item from
int MoreMountains.InventoryEngine.InventoryTester.RemoveItemIndex |
the index at which to remove items
Inventory MoreMountains.InventoryEngine.InventoryTester.RemoveItemInventory |
the inventory from which to remove an item
int MoreMountains.InventoryEngine.InventoryTester.RemoveItemQuantity |
the quantity to remove at the specified index
bool MoreMountains.InventoryEngine.InventoryTester.RemoveItemTestButton |
a test button