TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.InventoryEngine.InventoryTester Class Reference

This test class lets you play with the Inventory API. You can see it in action in the PixelRogueRoom2 demo scene. More...

Inheritance diagram for MoreMountains.InventoryEngine.InventoryTester:

Public Attributes

InventoryItem AddItem
 an item to add when pressing the AddItemTest button
int AddItemQuantity
 the quantity of the item to add
Inventory AddItemInventory
 the inventory to which to add the item
bool AddItemTestButton
 a test button
InventoryItem AddItemAtItem
 the inventory item to add at a specific index
int AddItemAtQuantity
 the quantity of item to add
int AddItemAtIndex
 the index at which the item should be added
Inventory AddItemAtInventory
 the inventory to add items to
bool AddItemAtTestButton
 a test button
int MoveItemOrigin
 the index from which to move items
int MoveItemDestination
 the index to which we want to move the origin index's item
Inventory MoveItemInventory
 the inventory in which to move items
bool MoveItemTestButton
 a test button
int MoveItemToInventoryOriginIndex
 the index from which to move items
int MoveItemToInventoryDestinationIndex = -1
 the index to which we want to move the origin index's item
Inventory MoveItemToOriginInventory
 the inventory in which to move an item from
Inventory MoveItemToDestinationInventory
 the inventory in which to move an item to
bool MoveItemToInventoryTestButton
 a test button
int RemoveItemIndex
 the index at which to remove items
int RemoveItemQuantity
 the quantity to remove at the specified index
Inventory RemoveItemInventory
 the inventory from which to remove an item
bool RemoveItemTestButton
 a test button
Inventory EmptyTargetInventory
 the inventory to empty
bool EmptyInventoryTestButton
 a test button

Protected Member Functions

virtual void AddItemTest ()
 Test method to add an item.
virtual void AddItemAtTest ()
 Test method to add an item at the specified index.
virtual void MoveItemTest ()
 Test method to move an item from index A to B.
virtual void MoveItemToInventory ()
 Test method to move an item from index A to B.
virtual void RemoveItemTest ()
 Test method to remove an item at the specified index.
virtual void EmptyInventoryTest ()
 Test method to empty the target inventory.

Detailed Description

This test class lets you play with the Inventory API. You can see it in action in the PixelRogueRoom2 demo scene.

Member Function Documentation

◆ AddItemAtTest()

virtual void MoreMountains.InventoryEngine.InventoryTester.AddItemAtTest ( )
protectedvirtual

Test method to add an item at the specified index.

◆ AddItemTest()

virtual void MoreMountains.InventoryEngine.InventoryTester.AddItemTest ( )
protectedvirtual

Test method to add an item.

◆ EmptyInventoryTest()

virtual void MoreMountains.InventoryEngine.InventoryTester.EmptyInventoryTest ( )
protectedvirtual

Test method to empty the target inventory.

◆ MoveItemTest()

virtual void MoreMountains.InventoryEngine.InventoryTester.MoveItemTest ( )
protectedvirtual

Test method to move an item from index A to B.

◆ MoveItemToInventory()

virtual void MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventory ( )
protectedvirtual

Test method to move an item from index A to B.

◆ RemoveItemTest()

virtual void MoreMountains.InventoryEngine.InventoryTester.RemoveItemTest ( )
protectedvirtual

Test method to remove an item at the specified index.

Member Data Documentation

◆ AddItem

InventoryItem MoreMountains.InventoryEngine.InventoryTester.AddItem

an item to add when pressing the AddItemTest button

◆ AddItemAtIndex

int MoreMountains.InventoryEngine.InventoryTester.AddItemAtIndex

the index at which the item should be added

◆ AddItemAtInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.AddItemAtInventory

the inventory to add items to

◆ AddItemAtItem

InventoryItem MoreMountains.InventoryEngine.InventoryTester.AddItemAtItem

the inventory item to add at a specific index

◆ AddItemAtQuantity

int MoreMountains.InventoryEngine.InventoryTester.AddItemAtQuantity

the quantity of item to add

◆ AddItemAtTestButton

bool MoreMountains.InventoryEngine.InventoryTester.AddItemAtTestButton

a test button

◆ AddItemInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.AddItemInventory

the inventory to which to add the item

◆ AddItemQuantity

int MoreMountains.InventoryEngine.InventoryTester.AddItemQuantity

the quantity of the item to add

◆ AddItemTestButton

bool MoreMountains.InventoryEngine.InventoryTester.AddItemTestButton

a test button

◆ EmptyInventoryTestButton

bool MoreMountains.InventoryEngine.InventoryTester.EmptyInventoryTestButton

a test button

◆ EmptyTargetInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.EmptyTargetInventory

the inventory to empty

◆ MoveItemDestination

int MoreMountains.InventoryEngine.InventoryTester.MoveItemDestination

the index to which we want to move the origin index's item

◆ MoveItemInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.MoveItemInventory

the inventory in which to move items

◆ MoveItemOrigin

int MoreMountains.InventoryEngine.InventoryTester.MoveItemOrigin

the index from which to move items

◆ MoveItemTestButton

bool MoreMountains.InventoryEngine.InventoryTester.MoveItemTestButton

a test button

◆ MoveItemToDestinationInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.MoveItemToDestinationInventory

the inventory in which to move an item to

◆ MoveItemToInventoryDestinationIndex

int MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventoryDestinationIndex = -1

the index to which we want to move the origin index's item

◆ MoveItemToInventoryOriginIndex

int MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventoryOriginIndex

the index from which to move items

◆ MoveItemToInventoryTestButton

bool MoreMountains.InventoryEngine.InventoryTester.MoveItemToInventoryTestButton

a test button

◆ MoveItemToOriginInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.MoveItemToOriginInventory

the inventory in which to move an item from

◆ RemoveItemIndex

int MoreMountains.InventoryEngine.InventoryTester.RemoveItemIndex

the index at which to remove items

◆ RemoveItemInventory

Inventory MoreMountains.InventoryEngine.InventoryTester.RemoveItemInventory

the inventory from which to remove an item

◆ RemoveItemQuantity

int MoreMountains.InventoryEngine.InventoryTester.RemoveItemQuantity

the quantity to remove at the specified index

◆ RemoveItemTestButton

bool MoreMountains.InventoryEngine.InventoryTester.RemoveItemTestButton

a test button


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/InventoryEngine/InventoryEngine/Scripts/Tests/InventoryTester.cs