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

Method forEachActivePart

source/base/StarAnimatedPartSet.cpp:166–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void AnimatedPartSet::forEachActivePart(function<void(String const&, ActivePartInformation const&)> callback) const {
167 for (auto const& p : m_parts) {
168 const_cast<AnimatedPartSet*>(this)->freshenActivePart(const_cast<Part&>(p.second));
169 callback(p.first, p.second.activePart);
170 }
171}
172
173size_t AnimatedPartSet::activeStateIndex(String const& stateTypeName) const {
174 auto const& stateType = m_stateTypes.get(stateTypeName);

Callers 1

drawablesWithZLevelMethod · 0.80

Calls 1

freshenActivePartMethod · 0.80

Tested by

no test coverage detected