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

Method activeStateIndex

source/base/StarAnimatedPartSet.cpp:173–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173size_t AnimatedPartSet::activeStateIndex(String const& stateTypeName) const {
174 auto const& stateType = m_stateTypes.get(stateTypeName);
175 return *stateType.states.indexOf(stateType.activeState.stateName);
176}
177
178bool AnimatedPartSet::setActiveStateIndex(String const& stateTypeName, size_t stateIndex, bool alwaysStart) {
179 auto const& stateType = m_stateTypes.get(stateTypeName);

Callers 1

netElementsNeedStoreMethod · 0.80

Calls 2

getMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected