| 128 | } |
| 129 | |
| 130 | void AnimatedPartSet::restartState(String const& stateTypeName) { |
| 131 | auto& stateType = m_stateTypes.get(stateTypeName); |
| 132 | stateType.activeState.timer = 0.0f; |
| 133 | |
| 134 | stateType.activeStateDirty = true; |
| 135 | for (auto& pair : m_parts) |
| 136 | pair.second.activePartDirty = true; |
| 137 | } |
| 138 | |
| 139 | AnimatedPartSet::ActiveStateInformation const& AnimatedPartSet::activeState(String const& stateTypeName) const { |
| 140 | auto& stateType = const_cast<StateType&>(m_stateTypes.get(stateTypeName)); |