csharp
public sealed class SetBlackboardValueTaskWrites a value the tree computed into a key.
Remarks
Beside the decorators because it reads as one, but it is a task: it does something.
Methods (8)
public static SetBlackboardValueTask Number(BlackboardKey key, float value)Writes a number.
public static SetBlackboardValueTask Word(BlackboardKey key, Symbol value)Writes a word.
public static SetBlackboardValueTask Is(BlackboardKey key, Entity value)Writes an entity.
public static SetBlackboardValueTask At(BlackboardKey key, Vector3 value)Writes a position.
public static SetBlackboardValueTask Copy(BlackboardKey target, BlackboardKey source)Copies one key into another of the same type.
public void Start(in AgentContext context, Span<byte> state)Begins. Called once before the first Tick, on a zeroed span.
public ActionStatus Tick(in AgentContext context, Span<byte> state, float delta)Advances it.
public void Abort(in AgentContext context, Span<byte> state)Stops it early. The span is zeroed afterwards; this is for what is outside it.
Used by (2)
- BehaviorTreeTaskTestsVixen.Ai.Tests
- BuildStateVixen.Ai