MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / forEachActiveState

Method forEachActiveState

source/base/StarAnimatedPartSet.cpp:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void AnimatedPartSet::forEachActiveState(function<void(String const&, ActiveStateInformation const&)> callback) const {
160 for (auto const& p : m_stateTypes) {
161 const_cast<AnimatedPartSet*>(this)->freshenActiveState(const_cast<StateType&>(p.second));
162 callback(p.first, p.second.activeState);
163 }
164}
165
166void AnimatedPartSet::forEachActivePart(function<void(String const&, ActivePartInformation const&)> callback) const {
167 for (auto const& p : m_parts) {

Callers 1

updateMethod · 0.80

Calls 1

freshenActiveStateMethod · 0.80

Tested by

no test coverage detected