Slot
Description
Used to interface with all the slots on an agent.
warning
This only interfaces with 'Inventory' POIs. This will not find any 'Action' POIs
Interface
| Type |
|---|
| ISlotService |
Inherits
| Type |
|---|
| N/A |
Properties
| Name | Type |
|---|---|
| controller | Slot[] |
Public Methods
| Name | Parameters | Return Type | Description |
|---|---|---|---|
| SlotService | GameObject character, IObjectRepositoryService<Item> itemRepositoryService | SlotService | A constructor for SlotService. |
| PutItemInSlot | Item item, POISearch requiredSlotSearch = null | boolean | Used to put an item in a slot. If successful will return true. |
| GetItem | ItemSearch search | Item | Returns a specific item if the agent has access to one in a slot. |
| GetSlot | ItemSearch search | Item | Returns the slot if the agent has one with an item in. |
| DestroyCurrentItemInUsingSlot | N/A | void | Destroys the item if the agent has one. |
| MoveItemToAnotherSlot | Item item, POISearch poiSearch, Slot currentSlot = null | boolean | Moves an item from one slot to another free one. |
| DropItem | int item | boolean | Removes the item from the slot and drops it. |
| ConsumeItem | int item | boolean | Performs the consume action on an item of a specific type if the agent has it. |
| HasItem | ItemSearch search | boolean | Checks if the agent has a specific item in one of their slots. |
| HoldingItem | N/A | boolean | Check if an agent is holding an item. |