MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / reset

Method reset

src/Core/Animation/Animation.cpp:383–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 }
382
383 void Animation::reset() noexcept
384 {
385 Debug::Log->trace("<Animation> Resetting Animation '{}'", m_name);
386 for (auto& group : m_groups)
387 {
388 group.second->reset();
389 }
390 m_status = AnimationStatus::Play;
391 m_codeIndex = 0;
392 m_feedInstructions = true;
393 m_over = false;
394 }
395
396 const Graphics::Texture& Animation::getTextureAtIndex(int index)
397 {

Callers 4

executeInstructionMethod · 0.95
updateCurrentGroupMethod · 0.45
setKeyMethod · 0.45
updateMethod · 0.45

Calls 1

traceMethod · 0.80

Tested by

no test coverage detected