EntitySearchEntry
Search-entry definition consumed by entity.add_search_entry / entity.update_search_entry. Describes how to walk the DataModel from a known anchor and which descendants qualify as entities.
Exactly one of EntityRelation, Team, or TeamScanContext must be supplied. EntityRelation is the simplest form: a single Enum value synthesises a default Team for you. Team is for static team membership; TeamScanContext is for dynamic team assignment driven by a second validator tree.
Fields
| Name | Type | Description |
|---|---|---|
| EntityKind | EntityKind | Classification applied to matched descendants: |
| EntityRelation | EntityRelation? | Shortcut: pick |
| EvaluationDistance | number? | Optional max distance (in studs) from the local character. |
| FirstValidChild | boolean | When |
| Id | string | Stable unique id. Duplicates are rejected with |
| IgnoredNames | { string }? | Optional leaf names to skip while walking |
| Name | string | Human-readable label used in overlays and logs. |
| ScanValidatorTree | { ValidatorEntry } | Chain of validator predicates AND-ed in order. Every entry must pass for the descendant to qualify. |
| SearchMode | EntitySearchMode | Walk order: |
| SearchPath | string | Dotted DataModel path to begin the descent at, e.g. |
| Team | EntityTeamSpec? | Static team rule. Mutually exclusive with |
| TeamScanContext | EntityTeamScanContext? | Dynamic team rule driven by a second validator tree. Mutually exclusive with |