Vixen
dd8b0a81
csharp
public readonly record struct AgentActionDeclaration

One agent action an assembly declared.

Read the guide page for this →

Fields and properties (4)

  • public string Name

    What the action is called. The name a compiled asset resolves to an index.

  • public Func<BlackboardLayout, IAgentAction> Factory

    Builds the action from the layout the host settled on. ⚠ A layout rather than nothing, because most actions take a BlackboardKey — and a key is an index into a layout that does not exist until every assembly has declared its keys, so an action cannot be constructed at declaration time.

  • public int StateSize

    How many bytes of per-agent memory it needs. May be zero.

  • public Assembly Origin

    The assembly that declared it, so an unloaded project's actions can be forgotten.

Methods (1)

  • public AgentActionDeclaration(string Name, Func<BlackboardLayout, IAgentAction> Factory, int StateSize, Assembly Origin)

    One agent action an assembly declared.

Used by (2)

  • AgentDeclarationsVixen.Ai
  • AgentDeclarationsTestsVixen.Ai.Tests