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

Method checkDelay

src/Core/Animation/AnimationGroup.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace obe::Animation
5{
6 bool AnimationGroup::checkDelay()
7 {
8 if (Time::epoch() - m_groupClock > m_delay)
9 {
10 m_groupClock = Time::epoch();
11 return true;
12 }
13 return false;
14 }
15 AnimationGroup::AnimationGroup(std::string name)
16 : m_name(std::move(name))
17 {

Callers

nothing calls this directly

Calls 1

epochFunction · 0.85

Tested by

no test coverage detected