Vixen
c7401864
csharp
public readonly record struct BehaviorServiceSlot

One service, attached to one composite.

Read the guide page for this →

Remarks

⚠ is not a nicety. An interval alone means every agent spawned in the same frame ticks its service in the same frame for ever, which turns a 0.5 s perception update into a spike every thirty frames. The deviation is drawn from the agent's own seeded stream rather than a shared one, so it is the same jitter on every machine.

Fields and properties (6)

  • public BehaviorService Service

    What it does.

  • public int Node

    The composite whose branch it lives for.

  • public float Interval

    How often it runs, in seconds.

  • public float RandomDeviation

    How much to jitter that, in seconds, from the agent's own stream.

  • public int MemoryOffset

    Where its state starts in an agent's memory block.

  • public int MemorySize

    How many bytes of that block are its own.

Methods (1)

  • public BehaviorServiceSlot(BehaviorService Service, int Node, float Interval, float RandomDeviation, int MemoryOffset, int MemorySize)

    One service, attached to one composite.

Used by (3)

  • BehaviorTreeInstanceVixen.Ai
  • BehaviorTreeTemplateVixen.Ai
  • CompileStateVixen.Ai