Class BehaviorTreeTimeLimitDecorator
Limits maximum duration of the node execution time (in seconds). Node will fail if it runs out of time.
Inheritance
BehaviorTreeTimeLimitDecorator
Inherited Members
BehaviorTreeTimeLimitDecorator
BehaviorTreeTimeLimitDecorator
BehaviorTreeTimeLimitDecorator
BehaviorTreeTimeLimitDecorator
Assembly: FlaxEngine.dll
File: Engine/AI/BehaviorTreeNodes.h
Syntax
public class BehaviorTreeTimeLimitDecorator : 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
Update(const BehaviorUpdateContext& context)
Updates node logic.
Declaration
public virtual BehaviorUpdateResult Update(const BehaviorUpdateContext& context) override
Parameters
BehaviorUpdateContext
context
Behavior update context data. |
Returns
BehaviorUpdateResult
Operation result enum. |