Class BehaviorTreeLoopDecorator
Loops node execution multiple times as long as it doesn't fail. Returns the last iteration result.
Inheritance
BehaviorTreeLoopDecorator
Inherited Members
BehaviorTreeLoopDecorator
BehaviorTreeLoopDecorator
BehaviorTreeLoopDecorator
BehaviorTreeLoopDecorator
Assembly: FlaxEngine.dll
File: Engine/AI/BehaviorTreeNodes.h
Syntax
public class BehaviorTreeLoopDecorator : public BehaviorTreeDecorator
Methods
GetStateSize()
Gets the node instance state size. A chunk of the valid memory is passed via InitState to setup that memory chunk (one per-behavior).
Declaration
public virtual int32 GetStateSize() const override
Returns
int32
|
Overrides
InitState(const BehaviorUpdateContext& context)
Initializes node instance state. Called when starting logic simulation for a given behavior. Call constructor of the state container.
Declaration
public virtual void InitState(const BehaviorUpdateContext& context) override
Parameters
BehaviorUpdateContext
context
Behavior update context data. |
Overrides
PostUpdate(const BehaviorUpdateContext& context, BehaviorUpdateResult& result)
Called after node update to post-process result or perform additional action.
Declaration
public virtual void PostUpdate(const BehaviorUpdateContext& context, BehaviorUpdateResult& result) override
Parameters
BehaviorUpdateContext
context
Behavior update context data. |
BehaviorUpdateResult
result
The node update result. Can be modified by the decorator (eg. to force success). |
Overrides
BehaviorTreeDecorator.PostUpdate(const BehaviorUpdateContext &,BehaviorUpdateResult &)