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

Method BecomeRelevant

Source/Engine/AI/BehaviorTreeNodes.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void BehaviorTreeNode::BecomeRelevant(const BehaviorUpdateContext& context)
105{
106 // Initialize state
107 BitArray<>& relevantNodes = *(BitArray<>*)context.RelevantNodes;
108 ASSERT_LOW_LAYER(relevantNodes.Get(_executionIndex) == false);
109 relevantNodes.Set(_executionIndex, true);
110 InitState(context);
111}
112
113void BehaviorTreeNode::BecomeIrrelevant(const BehaviorUpdateContext& context)
114{

Callers 1

InvokeUpdateMethod · 0.80

Calls 3

InitStateFunction · 0.85
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected