Table of Contents

Class HasBankSpaceCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks if a character's bank has at least a specified number of free slots.

[Serializable]
public class HasBankSpaceCondition : BaseCondition, ICondition
Inheritance
HasBankSpaceCondition
Implements
Inherited Members

Fields

RequiredSpace

The minimum number of free slots required in the bank for the condition to pass.

public int RequiredSpace

Field Value

int

Methods

Evaluate(ICharacter, EventData)

Evaluates whether the character (or event target) has at least the required number of free bank slots.

public override bool Evaluate(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character to check, or the fallback if no event target is present.

eventData EventData

Optional event data that may provide a different character to check.

Returns

bool

True if the character's bank has enough free slots; otherwise, false.