Class HasBankSpaceCondition
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
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
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's bank has enough free slots; otherwise, false.