csharp
public sealed class BehaviorTreeLibraryTrees by name, so that a key can name one.
Remarks
Deliberately small: a dictionary and a list. What a game actually loads trees through is P2's asset pipeline; this is what a dynamic subtree, a spawner and a test resolve a name against in the meantime, and what the pipeline will fill.
Fields and properties (2)
public int CountHow many trees it holds.
public BehaviorTreeTemplate this[int index]The tree at an index, which is what an AiAgent names.
Methods (3)
public int Add(BehaviorTreeTemplate template)Adds a tree.
public bool TryGet(Symbol name, out BehaviorTreeTemplate? template)Looks a tree up by name.
public int IndexOf(Symbol name)Looks a tree's index up by name.
Used by (14)
- VillageAiVillage
- AiSnapshotTestsVixen.Ai.Tests
- AiSystemVixen.Ai
- AiSystemTreeTestsVixen.Ai.Tests
- BehaviorTreeDeterminismTestsVixen.Ai.Tests
- BehaviorTreeResolverVixen.Ai
- BehaviorTreeTaskTestsVixen.Ai.Tests
- FleetVixen.Ai.Tests
- PatrolChaseGiveUpTestsVixen.Ai.Nodes.Tests
- PerceptionNodeTestsVixen.Ai.Perception.Tests
- RunSubtreeDynamicTaskVixen.Ai
- VillageVixen.Ai.Nodes.Tests
- AgentFixtureVixen.Editor.AssetEditors.Tests
- LiveAgentVixen.Editor.AssetEditors.Tests