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

Method pauseEmitter

tests/cpp-tests/Source/ParticleTest/ParticleTest.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 schedule(AX_SCHEDULE_SELECTOR(DemoPause::pauseEmitter), 2.0f);
124}
125void DemoPause::pauseEmitter(float time)
126{
127 if (_emitter->isPaused())
128 {
129 _emitter->resumeEmissions();
130 }
131 else
132 {
133 _emitter->pauseEmissions();
134 }
135}
136
137std::string DemoPause::subtitle() const
138{

Callers

nothing calls this directly

Calls 3

resumeEmissionsMethod · 0.80
pauseEmissionsMethod · 0.80
isPausedMethod · 0.45

Tested by

no test coverage detected