|
static void | RegisterLuaFunctions () |
| Registers the S-Inventory Lua functions with the Dialogue System. More...
|
|
static GameObject | FindActor (string actor) |
| Finds an actor by its GameObject name. More...
|
|
static T | GetActorComponent< T > (string actor) |
| Gets the InventoryManager on a GameObject with the specified name. More...
|
|
static T | GetActorComponent< T > (Transform actor) |
| Gets the InventoryManager on a GameObject with the specified name. More...
|
|
static string | GetActorName (string actor) |
| Gets the actor name to use in the Lua environment. More...
|
|
static string | GetCurrencyFieldName (string currencyName) |
|
static double | GetCurrency (string subject, string currencyName) |
|
static void | SetCurrency (string subject, string currencyName, double amount) |
|
static void | RefreshCurrencyUI (InventoryManager invManager) |
|
static void | AdjustCurrency (string subject, string currencyName, double amount) |
|
static double | GetItemAmount (string subject, string itemName) |
|
static void | AddItem (string subject, string itemName, double amount) |
|
static void | AddItem (Transform actor, string itemName, double amount) |
|
static void | AddItem (InventoryManager invManager, string itemName, double amount) |
|
static void | RemoveItem (string subject, string itemName, double amount) |
|
static void | RemoveItem (Transform actor, string itemName, double amount) |
|
static void | RemoveItem (InventoryManager invManager, string itemName, double amount) |
|
static void | RefreshItemUI (InventoryManager invManager) |
|
static S_Inventory.Item | FindItemInInventory (InventoryManager invManager, string itemName) |
|
static S_Inventory.Item | InstantiateItemPrefab (string itemName) |
|
static string | SanitizeItemName (string s) |
|
static string | DesanitizeItemName (string s) |
|
static void | RegisterLuaFunctions () |
| Registers the S-Inventory Lua functions with the Dialogue System. More...
|
|
static GameObject | FindActor (string actor) |
| Finds an actor by its GameObject name. More...
|
|
static T | GetActorComponent< T > (string actor) |
| Gets the InventoryManager on a GameObject with the specified name. More...
|
|
static T | GetActorComponent< T > (Transform actor) |
| Gets the InventoryManager on a GameObject with the specified name. More...
|
|
static string | GetActorName (string actor) |
| Gets the actor name to use in the Lua environment. More...
|
|
static string | GetCurrencyFieldName (string currencyName) |
|
static double | GetCurrency (string subject, string currencyName) |
|
static void | SetCurrency (string subject, string currencyName, double amount) |
|
static void | RefreshCurrencyUI (InventoryManager invManager) |
|
static void | AdjustCurrency (string subject, string currencyName, double amount) |
|
static double | GetItemAmount (string subject, string itemName) |
|
static void | AddItem (string subject, string itemName, double amount) |
|
static void | AddItem (Transform actor, string itemName, double amount) |
|
static void | AddItem (InventoryManager invManager, string itemName, double amount) |
|
static void | RemoveItem (string subject, string itemName, double amount) |
|
static void | RemoveItem (Transform actor, string itemName, double amount) |
|
static void | RemoveItem (InventoryManager invManager, string itemName, double amount) |
|
static void | RefreshItemUI (InventoryManager invManager) |
|
static S_Inventory.Item | FindItemInInventory (InventoryManager invManager, string itemName) |
|
static S_Inventory.Item | InstantiateItemPrefab (string itemName) |
|
static string | SanitizeItemName (string s) |
|
static string | DesanitizeItemName (string s) |
|
This static class provides Lua functions to access S-Inventory.
You must call RegisterLuaFunctions() at least once before using the Lua functions.