Method FindItemsByTag
FindItemsByTag(Tag, ICollection<InventoryItem>)
Gets items filtered with the specified tag.
Declaration
public static int FindItemsByTag(Tag tag, ICollection<InventoryItem> target)
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | The tag used to filter the items. |
| ICollection<InventoryItem> | target | The target collection where filtered items are copied |
Returns
| Type | Description |
|---|---|
| int | The number of items copied |
FindItemsByTag(Tag)
Gets items filtered with the specified tag.
Declaration
public static InventoryItem[] FindItemsByTag(Tag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | The tag used to filter the items. |
Returns
| Type | Description |
|---|---|
| InventoryItem[] | The filtered items. |
FindItemsByTag(string, ICollection<InventoryItem>)
Gets items filtered with the specified tag.
Declaration
public static int FindItemsByTag(string key, ICollection<InventoryItem> target)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The identifier of the tag used to filter the items. |
| ICollection<InventoryItem> | target | The target collection where filtered items are copied |
Returns
| Type | Description |
|---|---|
| int | The number of items copied |
FindItemsByTag(string)
Gets items filtered items with the specified tag.
Declaration
public static InventoryItem[] FindItemsByTag(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The tag identifier used to filter the items. |
Returns
| Type | Description |
|---|---|
| InventoryItem[] | The filtered items. |