csharp
public sealed class TimeLimitDecoratorFails the branch once it has been running for too long.
Fields and properties (2)
public override int StateSizeHow many bytes of per-agent state it needs.
public override bool Continuous
Methods (4)
public TimeLimitDecorator(float seconds)Fails the branch once it has been running for too long.
public override bool Evaluate(in BehaviorContext context, ReadOnlySpan<byte> state)Whether the node may be entered, or may keep running.
public override void Enter(in BehaviorContext context, Span<byte> state)The node is being entered.
public override ActionStatus Finish(in BehaviorContext context, Span<byte> state, ActionStatus result)The node has finished, and this is the last chance to change what that meant.
Used by (2)
- BehaviorTreeDecoratorTestsVixen.Ai.Tests
- BuildStateVixen.Ai