csharp
public readonly record struct AgentActionDeclarationOne agent action an assembly declared.
Fields and properties (4)
public string NameWhat the action is called. The name a compiled asset resolves to an index.
public Func<BlackboardLayout, IAgentAction> FactoryBuilds 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 StateSizeHow many bytes of per-agent memory it needs. May be zero.
public Assembly OriginThe 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