Method RemoveItemsByDefinition
RemoveItemsByDefinition(InventoryItemDefinition)
This method will remove the Item that uses the given ItemDefinition.
Declaration
public static int RemoveItemsByDefinition(InventoryItemDefinition itemDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| InventoryItemDefinition | itemDefinition | The InventoryItemDefinition we want to remove. |
Returns
| Type | Description |
|---|---|
| int | The amount of items that were removed. |
RemoveItemsByDefinition(string)
This method will remove the Item that uses the InventoryItemDefinition with the given Hash.
Declaration
public static int RemoveItemsByDefinition(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The Identifier of the InventoryItemDefinition we want to remove. |
Returns
| Type | Description |
|---|---|
| int | The amount of items that were removed. |