RPGlite Starter Kit  1.0.0
Starting RPG projects made easy.
Loading...
Searching...
No Matches
RPGlite.Inventory Class Reference
Inheritance diagram for RPGlite.Inventory:
[legend]

Public Member Functions

void EmitEquippedItem (ItemUI item)
 
- Public Member Functions inherited from RPGlite.Storage
bool Toggle ()
 Toggles storage on or off.
 
bool SetInventory (bool state)
 Sets storage on or off.
 
void AddMoney (int amount)
 Add or subtract money from this storage.
 
void UpdateMoney (int newMoneyAmount)
 Set a specific amount of money for this storage.
 
void UpdateInventory ()
 Reloads all items based on list of itemIds.
 
void ClearInventory ()
 Removes all inventory items.
 
void PlayInteractionSound (float pitchOffset=0.0f)
 Play interaction sound from this inventory, with fixed random pitch variation.
 

Public Attributes

EquippedEvent equippedItemEvent = new EquippedEvent()
 
- Public Attributes inherited from RPGlite.Storage
GameObject itemUIPrefab
 
List< int > itemIds
 
int money = 0
 
TMP_Text money_text
 
GameObject inventoryList
 

Additional Inherited Members

- Protected Member Functions inherited from RPGlite.Storage
void Start ()
 
- Protected Attributes inherited from RPGlite.Storage
bool inventoryOn = true
 
- Properties inherited from RPGlite.Storage
bool InventoryOn [get, set]
 Define if the storage is showing or not.
 

Member Function Documentation

◆ EmitEquippedItem()

void RPGlite.Inventory.EmitEquippedItem ( ItemUI item)
inline

Member Data Documentation

◆ equippedItemEvent

EquippedEvent RPGlite.Inventory.equippedItemEvent = new EquippedEvent()

The documentation for this class was generated from the following file: