Class HasInventorySpaceCondition
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
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
initiatorICharacterThe character to check, or the fallback if no event target is present.
eventDataEventDataOptional event data that may provide a different character to check.
Returns
- bool
True if the character has enough free inventory slots; otherwise, false.