The Inventory class manages all Inventory-related logic
More...
The Inventory class manages all Inventory-related logic
Definition at line 26 of file Inventory.cs.
◆ Awake()
◆ GetInventory()
◆ GetSlotsByCategory()
List< ItemSlot > Inventory.GetSlotsByCategory |
( |
int |
categoryIndex | ) |
|
Get the List of ItemSlots for the specific category
- Parameters
-
categoryIndex | The index of the category |
Definition at line 52 of file Inventory.cs.
◆ RemoveItem()
void Inventory.RemoveItem |
( |
ItemBase |
item, |
|
|
int |
selectedCategory |
|
) |
| |
Remove an item from the Inventory
- Parameters
-
item | The item to remove |
selectedCategory | The index of the selected category |
Definition at line 84 of file Inventory.cs.
◆ UseItem()
ItemBase Inventory.UseItem |
( |
int |
itemIndex, |
|
|
Pokemon |
selectedPokemon, |
|
|
int |
selectedCategory |
|
) |
| |
Use an item
- Parameters
-
itemIndex | The index of the item to use |
selectedPokemon | The selected pokemon to use the item on |
selectedCategory | The index of the selected category |
Definition at line 63 of file Inventory.cs.
◆ ItemCategories
List<string> Inventory.ItemCategories |
|
staticgetset |
Initial value:= new List<string>()
{
"ITEMS",
"POKEBALLS",
"TMs & HMs"
}
Definition at line 34 of file Inventory.cs.
◆ OnUpdated
Action Inventory.OnUpdated |
The documentation for this class was generated from the following file: