| 164 | } |
| 165 | |
| 166 | void 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 | |
| 173 | size_t AnimatedPartSet::activeStateIndex(String const& stateTypeName) const { |
| 174 | auto const& stateType = m_stateTypes.get(stateTypeName); |
no test coverage detected