Validators

The purpose of a Validator is to return either true or false.

Knowing how Runtime Validators work is crucial for designing them.

There will be more validator types coming in the future.

diagram

Error Message

When creating a new Validator, the errorMessage is intentionally left at null. This is because you maybe want to reuse an already existing error message or you do not require an error message.

Validator Types

UnitCompareVital

used to validate a vital.

UnitCompareDamageTakenTime