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

Method StopLogic

Source/Engine/AI/Behavior.cpp:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void Behavior::StopLogic(BehaviorUpdateResult result)
144{
145 if (_result != BehaviorUpdateResult::Running || result == BehaviorUpdateResult::Running)
146 return;
147 PROFILE_CPU();
148 _accumulatedTime = 0.0f;
149 _totalTime = 0;
150 _result = result;
151 _knowledge.FreeMemory();
152}
153
154void Behavior::ResetLogic()
155{

Callers 1

UpdateMethod · 0.80

Calls 1

FreeMemoryMethod · 0.45

Tested by

no test coverage detected