Table of Contents

Class HasInventorySpaceCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks if a character has at least a specified number of free inventory slots.

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

Fields

RequiredSlots

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

public int RequiredSlots

Field Value

int

Methods

Evaluate(ICharacter, EventData)

Evaluates whether the character (or event target) has at least the required number of free inventory 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 has enough free inventory slots; otherwise, false.