Table of Contents

Interface IBankController

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

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

long

LastInteractableID

The ID of the last interactable bank object used by the player.

long LastInteractableID { get; set; }

Property Value

long

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

from int

The source slot index.

to int

The destination slot index.

fromInventory InventoryType

The inventory type of the source slot.

Returns

bool

True if the slots can be swapped, false otherwise.