Interface IBankController
Interface for bank controllers, managing currency and item slots for a character's bank. Extends character behaviour and item container functionality.
public interface IBankController : ICharacterBehaviour, IItemContainer
- Inherited Members
Properties
Currency
The amount of currency stored in the bank.
long Currency { get; set; }
Property Value
LastInteractableID
The ID of the last interactable bank object used by the player.
long LastInteractableID { get; set; }
Property Value
Methods
CanSwapItemSlots(int, int, InventoryType)
Determines if two item slots can be swapped, preventing invalid swaps (e.g., same slot).
bool CanSwapItemSlots(int from, int to, InventoryType fromInventory)
Parameters
fromintThe source slot index.
tointThe destination slot index.
fromInventoryInventoryTypeThe inventory type of the source slot.
Returns
- bool
True if the slots can be swapped, false otherwise.