SInventory
Index
Functions Index
Properties Index
Functions
Authorize
void Authorize (Closure onAuthorized=null, Closure onRejected=null)
Requests access to inventory functions, must be called prior to attempting to access inventory. As soon as the player has accepted the request, the Authorized attribute will be 'true'.
CountCopiesOfItem
int CountCopiesOfItem (int itemID)
Function Description
AddToHotbar
void AddToHotbar (int index, int itemID)
Adds the first found instance of itemID to the players hotbar entry at slot 'index'.
RemoveFromHotbar
void RemoveFromHotbar (int index)
Remove item at slot index from Hotbar
RequestRefresh
void RequestRefresh ()
Forces a check for external changes to the users inventory, can only be called once every 60 seconds
Properties
Authorized
bool Authorized get
Returns true if player has accepted access authorization request to his inventory
Items
SInventoryItem[] Items get
Returns the array of the users current inventory items
Last updated