|
Endstar LUA API Documentation
|
Public Member Functions | |
| List< InventoryItemDescription > | GetItems () |
| Gets a list of InventoryItemDescriptions. | |
| void | SetInventorySize (int size) |
| Sets the size of the player's inventory. Players will drop excess items. | |
| bool | ContainsItem (InventoryLibraryReference inventoryLibraryReference) |
| Checks if the player's inventory contains the item. | |
| bool | ContainsQuantity (InventoryLibraryReference inventoryLibraryReference, int quantity) |
| Checks if the player's inventory contains the quantity of the item. | |
| int | GetQuantity (InventoryLibraryReference inventoryLibraryReference) |
| Gets the quantity of the provided item in the player's inventory. | |
| bool | TryAddItem (InventoryLibraryReference item) |
| Tries to add the item to the player's inventory. | |
| bool | TryAddItem (InventoryLibraryReference item, int quantity) |
| Tries to add the item to the player's inventory. | |
| bool | TryAddItem (InventoryLibraryReference item, bool lockItem) |
| Tries to add the item to the player's inventory. | |
| bool | TryAddItem (InventoryLibraryReference item, bool lockItem, int quantity) |
| Tries to add the item to the player's inventory. | |
| bool | TryRemoveItem (InventoryLibraryReference item) |
| Tries to remove the item from the player's inventory. | |
| bool | TryRemoveItem (InventoryLibraryReference item, int quantity) |
| Tries to remove the item from the player's inventory. | |
| void | RemoveAll (InventoryLibraryReference item) |
| Removes all of an item from the player's inventory. | |
| void | RemoveAllItems (bool includeLockedItems) |
| Removes all equippable items from the player's inventory. | |
| void | RemoveAllResources () |
| Removes all resources from the player. | |
| bool ContainsItem | ( | InventoryLibraryReference | inventoryLibraryReference | ) |
Checks if the player's inventory contains the item.
| inventoryLibraryReference | The item to check for. |
| bool ContainsQuantity | ( | InventoryLibraryReference | inventoryLibraryReference, |
| int | quantity ) |
Checks if the player's inventory contains the quantity of the item.
| inventoryLibraryReference | The item to check. |
| quantity | The quantity to check for. |
| List< InventoryItemDescription > GetItems | ( | ) |
Gets a list of InventoryItemDescriptions.
| int GetQuantity | ( | InventoryLibraryReference | inventoryLibraryReference | ) |
Gets the quantity of the provided item in the player's inventory.
| inventoryLibraryReference | The item to get the quantity for. |
| void RemoveAll | ( | InventoryLibraryReference | item | ) |
Removes all of an item from the player's inventory.
| item | The item to remove. |
| void RemoveAllItems | ( | bool | includeLockedItems | ) |
Removes all equippable items from the player's inventory.
| includeLockedItems |
| void RemoveAllResources | ( | ) |
Removes all resources from the player.
| void SetInventorySize | ( | int | size | ) |
Sets the size of the player's inventory. Players will drop excess items.
| size | The new size of the player's inventory. |
| bool TryAddItem | ( | InventoryLibraryReference | item | ) |
Tries to add the item to the player's inventory.
| item | The item to add to the player's inventory. |
| bool TryAddItem | ( | InventoryLibraryReference | item, |
| bool | lockItem ) |
Tries to add the item to the player's inventory.
| item | The item to add to the player's inventory. |
| lockItem | Should the item be locked after adding it. |
| bool TryAddItem | ( | InventoryLibraryReference | item, |
| bool | lockItem, | ||
| int | quantity ) |
Tries to add the item to the player's inventory.
| item | The item to add to the player's inventory. |
| lockItem | Should the item be locked after adding it. |
| quantity | The quantity of the item to add. |
| bool TryAddItem | ( | InventoryLibraryReference | item, |
| int | quantity ) |
Tries to add the item to the player's inventory.
| item | The item to add to the player's inventory. |
| quantity | The quantity of the item to add. |
| bool TryRemoveItem | ( | InventoryLibraryReference | item | ) |
Tries to remove the item from the player's inventory.
| item | The item to remove. |
| bool TryRemoveItem | ( | InventoryLibraryReference | item, |
| int | quantity ) |
Tries to remove the item from the player's inventory.
| item | The item to remove. |
| quantity | The quantity of items to remove. |