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

Method setActiveStateIndex

source/base/StarAnimatedPartSet.cpp:178–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178bool AnimatedPartSet::setActiveStateIndex(String const& stateTypeName, size_t stateIndex, bool alwaysStart) {
179 auto const& stateType = m_stateTypes.get(stateTypeName);
180 String const& stateName = stateType.states.keyAt(stateIndex);
181 return setActiveState(stateTypeName, stateName, alwaysStart);
182}
183
184void AnimatedPartSet::update(float dt) {
185 for (auto& pair : m_stateTypes) {

Callers 1

netElementsNeedLoadMethod · 0.80

Calls 2

keyAtMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected