Interface IDomainObject
An interface that marks an implementation of a domain object type for DOTS, trait-based domains
Namespace: Unity.AI.Planner.DomainLanguage.TraitBased
Syntax
public interface IDomainObject : IBufferElementData
Methods
MatchesTraitFilter(ComponentType[])
Evaluate whether this domain object has the specified trait types
Declaration
bool MatchesTraitFilter(ComponentType[] traitTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| ComponentType[] | traitTypes | Types of traits to match |
Returns
| Type | Description |
|---|---|
| System.Boolean | Whether or not the domain object has the trait types |