Reference/Datatypes/ValidatorEntry
Datatype · Structs

ValidatorEntry

struct

Single predicate in a ScanValidatorTree or TeamValidatorTree. The Validator field selects the kind; the remaining fields are kind-specific.

Kinds and their args:

  • GetValue - { Target = string, Expect = any } reads instance[Target] and compares.
  • GetAttribute - { Target = string, Expect = any } reads the named attribute and compares.
  • CheckMeshId - { Expect = string } matches MeshId on a MeshPart / SpecialMesh.
  • CheckTextureId - { Expect = string } matches TextureID.
  • CheckForChild - { Name = string } requires a child of that name.
  • CheckForChildOfClass - { ClassName = string } requires a child whose ClassName matches exactly.
  • CheckForChildWhichIsA - { ClassName = string } requires a child that IsA(ClassName).

Fields

NameTypeDescription
ClassNamestring?

Class name for CheckForChildOfClass / CheckForChildWhichIsA.

Expectany?

Expected value for GetValue, GetAttribute, CheckMeshId, CheckTextureId.

Namestring?

Child name for CheckForChild.

Targetstring?

Property or attribute name for GetValue / GetAttribute.

ValidatorValidatorKind

Selects the predicate variant. The other required fields depend on this value.