Table of Contents

Class CanEquipItemCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks if an item can be equipped by the character (initiator or event target). Requires an ItemEventData in the EventData.

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

Methods

Evaluate(ICharacter, EventData)

Evaluates whether the character (or event target) can equip the specified item, based on the provided event data.

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

Event data containing item and slot information.

Returns

bool

True if the item can be equipped; otherwise, false.