Vixen
caa30e12
csharp
public sealed class BehaviorAttachmentContent

One decorator or service, as a file holds it: a type name and its fields.

Read the guide page for this →

Remarks

⚠ A type name and a bag of named values, not a polymorphic tree. A discriminated hierarchy in a text asset is a tag people have to get right by hand, and binding one needs reflection at load — which ADR-002 rules out. What resolves the name to an object is BehaviorNodeSchema, which is a table this assembly declares.

The values are strings because a field's type is the schema's business rather than the file's: an Aborts is an enum, a Seconds is a float and a Key is a blackboard key's name, and one string per field means the reader does not need to know which is which before it has looked the type up.

Fields and properties (5)

  • public string Type

    Which node type this is, as BehaviorNodeSchema names it.

  • public Dictionary<string, string> Fields

    Its fields, by name.

  • public float Interval

    How often a service runs, in seconds. Ignored for a decorator.

  • public float RandomDeviation

    How much to jitter that. Ignored for a decorator.

  • public List<BehaviorAttachmentContent> Children

    The decorators this one is built out of, for the two that take others.

Used by (15)

  • AuthorableNodeTestsVixen.Ai.Tests
  • BehaviorNodeContentVixen.Ai
  • BuildStateVixen.Ai
  • PatrolChaseGiveUpTestsVixen.Ai.Nodes.Tests
  • PerceptionNodeTestsVixen.Ai.Perception.Tests
  • TypeRegistrationVixen.Ai
  • Vixen_Ai_BehaviorAttachmentContentSerializerVixen.Ai
  • Vixen_Ai_BehaviorNodeContentSerializerVixen.Ai
  • WorldNodeRegistrationTestsVixen.Ai.Nodes.Tests
  • BehaviorTreeDocumentTestsVixen.Editor.AssetEditors.Tests
  • BehaviorTreeModelVixen.Editor.Ai
  • BehaviorTreeModelTestsVixen.Editor.Ai.Tests
  • BehaviorTreeProjectionVixen.Editor.Ai
  • BehaviorTreeViewVixen.Editor.AssetEditors
  • LiveAgentVixen.Editor.AssetEditors.Tests