InventoryTransfer

Class

Namespace: GGG.Inventory

Atomic transfer operations between inventory containers.

public static class InventoryTransfer

Inheritance

object ← InventoryTransfer

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

TryTransfer(IInventory, IInventory, ItemInstance)

Attempts to transfer items between inventories.

public static bool TryTransfer(IInventory source, IInventory destination, ItemInstance item)

Parameters

source IInventory

The runtime model to bind to the view.

destination IInventory

The destination inventory.

item ItemInstance

The runtime item instance to inspect or modify.

Returns

bool

Whether the operation succeeded.