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

Method update

src/Core/Animation/Animation.cpp:349–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 }
348
349 void Animation::update()
350 {
351 if (!m_over)
352 {
353 const Time::TimeUnit delay = (m_sleep) ? m_sleep : m_delay;
354 Debug::Log->trace("<Animation> Delay is {} seconds", delay);
355 if (Time::epoch() - m_clock > delay)
356 {
357 m_clock = Time::epoch();
358 m_sleep = 0;
359 Debug::Log->trace("<Animation> Updating Animation '{0}'", m_name);
360
361 if (m_feedInstructions)
362 {
363 this->executeInstruction();
364 }
365 if (!m_currentGroupName.empty())
366 {
367 this->updateCurrentGroup();
368 }
369 }
370 }
371 }
372
373 void Animation::setAntiAliasing(bool antiAliasing) noexcept
374 {

Callers

nothing calls this directly

Calls 5

executeInstructionMethod · 0.95
updateCurrentGroupMethod · 0.95
epochFunction · 0.85
traceMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected