MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CanUpdate

Method CanUpdate

Source/Engine/AI/BehaviorTreeNodes.cpp:678–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678bool BehaviorTreeCooldownDecorator::CanUpdate(const BehaviorUpdateContext& context)
679{
680 auto state = GetState<State>(context.Memory);
681 return state->EndTime <= context.Time;
682}
683
684void BehaviorTreeCooldownDecorator::PostUpdate(const BehaviorUpdateContext& context, BehaviorUpdateResult& result)
685{

Callers 1

InvokeUpdateMethod · 0.80

Calls 3

GetMethod · 0.45
TryGetMethod · 0.45
HasTagMethod · 0.45

Tested by

no test coverage detected