MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / update

Method update

Source/Node/EffekNode.cpp:131–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131bool EffekNode::update(double deltaTime) {
132 if (!_effeks.empty()) {
133 auto instance = SharedEffekManager.instance->efkManager.Get();
134 auto it = std::remove_if(_effeks.begin(), _effeks.end(), [&](const Own<RunningEff>& effek) {
135 return !instance->Exists(effek->handle);
136 });
137 if (it != _effeks.end()) {
138 for (auto tmpIt = it; tmpIt != _effeks.end(); ++tmpIt) {
139 EventArgs<int> event("EffekEnd"_slice, tmpIt->get()->handle);
140 emit(&event);
141 }
142 _effeks.erase(it, _effeks.end());
143 }
144 }
145 return Node::update(deltaTime);
146}
147
148void EffekNode::render() {
149 if (_effeks.empty()) {

Callers 1

EffekManagerMethod · 0.45

Calls 10

emitFunction · 0.85
ExistsMethod · 0.80
GetMethod · 0.65
getMethod · 0.65
updateFunction · 0.50
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected