public sealed class BehaviorTreeResolverEverything a piece of AI content needs resolving against: the actions its tasks name, the sensors its services run, the inputs its considerations read, the world sources its GOAP keys project from, and the trees its subtrees call.
Remarks
Three lookups rather than one, because they are answered by three different parts of a game — an action registry is code, a sensor is code, and a tree is content. A caller that has none of them still gets a compile and a list of what was missing, which is what makes a half-authored tree openable.
Fields and properties (4)
public const string UnresolvedWhat a task whose type could not be resolved runs instead.
public AgentActionRegistry ActionsThe actions its tasks are registered in.
public BehaviorNodeSchema SchemaThe node library the file's type names are looked up in.
public BehaviorTreeLibrary LibraryTrees a dynamic subtree may name at run time.
Methods (18)
public BehaviorTreeResolver()Creates a resolver with the placeholder action a failed lookup falls back to.
public BehaviorTreeResolver AddSensor(string name, IWorldSensor sensor)Registers a sensor an UpdateBlackboard service may name.
public BehaviorTreeResolver AddInput(string name, IUtilityInput input)Registers a utility input a .vxutility's consideration may name.
public bool TryGetInput(string name, out IUtilityInput? input)Looks a utility input up.
public BehaviorTreeResolver AddWorldSource(string name, IGoapWorldSource source)Registers a world source a .vxgoap's key may name.
public bool TryGetWorldSource(string name, out IGoapWorldSource? source)Looks a world source up.
public BehaviorTreeResolver AddGenerator(string name, IQueryGenerator generator)Registers a generator a .vxquery may name.
public bool TryGetGenerator(string name, out IQueryGenerator? generator)Looks a generator up.
public BehaviorTreeResolver AddTest(string name, IQueryTest test)Registers a test a .vxquery may name.
public bool TryGetTest(string name, out IQueryTest? test)Looks a test up.
public BehaviorTreeResolver AddSet(UtilitySet set)Registers a compiled utility set a RunUtilitySet task may name.
public bool TryGetSet(string name, out UtilitySet? set)Looks a utility set up.
public BehaviorTreeResolver AddTree(BehaviorTreeContent tree)Registers a tree a RunSubtree may name.
public BehaviorTreeResolver AddDecorator(string type, BehaviorDecoratorFactory factory)Teaches it to build a decorator this assembly does not define.
public BehaviorTreeResolver AddService(string type, BehaviorServiceFactory factory)Teaches it to build a service this assembly does not define.
public BehaviorTreeResolver AddTask(string type, BehaviorTaskFactory factory)Teaches it to build a task this assembly does not define.
public bool TryGetSensor(string name, out IWorldSensor? sensor)Looks a sensor up.
public bool TryGetTree(string name, out BehaviorTreeContent? tree)Looks a tree up.
Used by (24)
- AuthorableNodeTestsVixen.Ai.Tests
- BehaviorTreeContentCompilerVixen.Ai
- BehaviorTreeResolverReuseTestsVixen.Ai.Tests
- BuildStateVixen.Ai
- GoapDomainContentCompilerVixen.Ai
- PatrolChaseGiveUpTestsVixen.Ai.Nodes.Tests
- PerceptionNodeTestsVixen.Ai.Perception.Tests
- PerceptionNodesVixen.Ai.Perception
- QueryContentCompilerVixen.Ai
- QueryContentTestsVixen.Ai.Tests
- QueryNodesVixen.Ai.Nodes
- UtilityContentTestsVixen.Ai.Tests
- UtilitySetContentCompilerVixen.Ai
- WorldNodeRegistrationTestsVixen.Ai.Nodes.Tests
- WorldNodesVixen.Ai.Nodes
- BehaviorTreeDocumentVixen.Editor.AssetEditors
- BehaviorTreeImporterVixen.Editor.Assets
- GoapDomainDocumentVixen.Editor.AssetEditors
- GoapDomainImporterVixen.Editor.Assets
- LiveAgentVixen.Editor.AssetEditors.Tests
- QueryDocumentVixen.Editor.AssetEditors
- QueryImporterVixen.Editor.Assets
- UtilitySetDocumentVixen.Editor.AssetEditors
- UtilitySetImporterVixen.Editor.Assets