◆ InventoryHandler()
This class handles inventory related functions that don't directly require the OnGUI method.
◆ CanTransfer()
Returns true if the item can be transferred from dragSlot to dropSlot.
◆ DragItemFromSlot()
Begins dragging an item from an inventory slot.
◆ DropItemInSlot()
| void InventoryHandler.DropItemInSlot |
( |
Vector2 |
mousePos, |
|
|
bool |
usingContainer |
|
) |
| |
|
inline |
Drops an item into an inventory slot.
◆ NetworkRemoveItem()
| void InventoryHandler.NetworkRemoveItem |
( |
| ) |
|
|
inlineprivate |
Updates the server when items are removed from storage containers in multiplayer games.
◆ NetworkStorageCoroutine()
| IEnumerator InventoryHandler.NetworkStorageCoroutine |
( |
int |
storageInventoryDropSlot, |
|
|
InventorySlot |
dropSlot |
|
) |
| |
|
inline |
When an item is moved from one slot to another in a container, the contents of both slots are updated on the server.
◆ SearchComputerContainers()
| void InventoryHandler.SearchComputerContainers |
( |
StorageComputer |
computer, |
|
|
string |
term |
|
) |
| |
|
inline |
Searches for items in all containers connected to the computer.
◆ amountToDrag
| int InventoryHandler.amountToDrag |
|
private |
◆ dragSlotIndex
| int InventoryHandler.dragSlotIndex |
|
private |
◆ guiCoordinates
◆ itemToDrag
| string InventoryHandler.itemToDrag |
◆ networkStorageCoroutine
| Coroutine InventoryHandler.networkStorageCoroutine |
|
private |
◆ networkStorageCoroutineBusy
| bool InventoryHandler.networkStorageCoroutineBusy |
|
private |
◆ playerController
◆ playerInventory
◆ slotDraggingFrom
The documentation for this class was generated from the following file: