MCPcopy Create free account
hub / github.com/axmolengine/axmol / pauseTarget

Method pauseTarget

core/base/Scheduler.cpp:628–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void Scheduler::pauseTarget(void* target)
629{
630 AXASSERT(target != nullptr, "target can't be nullptr!");
631
632 // custom selectors
633 auto timerIt = _timersMap.find(target);
634 if (timerIt != _timersMap.end())
635 {
636 timerIt->second.paused = true;
637 }
638
639 // update selector
640 auto updateIt = _schedIndexMap.find(target);
641 if (updateIt != _schedIndexMap.end())
642 {
643 updateIt->second->paused = true;
644 }
645}
646
647bool Scheduler::isTargetPaused(void* target)
648{

Callers 3

_onUpdateMethod · 0.45
onEnterMethod · 0.45
pauseMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 2

onEnterMethod · 0.36
pauseMethod · 0.36