MCPcopy Create free account
hub / github.com/comaps/comaps / PushAnimation

Method PushAnimation

libs/drape_frontend/animation_system.cpp:241–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void AnimationSystem::PushAnimation(drape_ptr<Animation> && animation)
242{
243#ifdef DEBUG_ANIMATIONS
244 LOG(LINFO, ("Push animation", animation->GetType()));
245#endif
246
247 auto pList = std::make_shared<TAnimationList>();
248 pList->emplace_back(std::move(animation));
249
250 bool startImmediately = m_animationChain.empty();
251 m_animationChain.push_back(pList);
252 if (startImmediately)
253 pList->front()->OnStart();
254
255#ifdef DEBUG_ANIMATIONS
256 Print();
257#endif
258}
259
260void AnimationSystem::FinishAnimations(std::function<bool(std::shared_ptr<Animation> const &)> const & predicate,
261 bool rewind, bool finishAll)

Callers

nothing calls this directly

Calls 7

frontMethod · 0.80
PrintFunction · 0.50
GetTypeMethod · 0.45
emplace_backMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45
OnStartMethod · 0.45

Tested by

no test coverage detected