Method HasInventoryByDefinition
HasInventoryByDefinition(string)
This method checks if an Inventory exists with the given InventoryDefinition Id.
Declaration
public static bool HasInventoryByDefinition(string inventoryDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
string | inventoryDefinitionId | The Id we are checking for. |
Returns
Type | Description |
---|---|
bool | True/False whether or not the Inventory is found in the InventoryManager. |
HasInventoryByDefinition(int)
This method checks if an Inventory exists for given InventoryDefinition Hash.
Declaration
public static bool HasInventoryByDefinition(int inventoryDefinitionHash)
Parameters
Type | Name | Description |
---|---|---|
int | inventoryDefinitionHash | The Hash we are checking for. |
Returns
Type | Description |
---|---|
bool | True/False whether or not the Inventory is found in the InventoryManager. |
HasInventoryByDefinition(InventoryDefinition)
This method checks if an Inventory exists for specified InventoryDefinition.
Declaration
public static bool HasInventoryByDefinition(InventoryDefinition inventoryDefinition)
Parameters
Type | Name | Description |
---|---|---|
InventoryDefinition | inventoryDefinition | The InventoryDefinition we are checking for. |
Returns
Type | Description |
---|---|
bool | True/False whether or not the Inventory is found in the InventoryManager. |