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

Method restartState

source/base/StarAnimatedPartSet.cpp:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void 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
139AnimatedPartSet::ActiveStateInformation const& AnimatedPartSet::activeState(String const& stateTypeName) const {
140 auto& stateType = const_cast<StateType&>(m_stateTypes.get(stateTypeName));

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected