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

Method setEnabledStateTypes

source/base/StarAnimatedPartSet.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void AnimatedPartSet::setEnabledStateTypes(StringList const& stateTypeNames) {
91 for (auto& pair : m_stateTypes)
92 pair.second.enabled = false;
93
94 for (auto const& stateTypeName : stateTypeNames)
95 m_stateTypes.get(stateTypeName).enabled = true;
96
97 for (auto& pair : m_parts)
98 pair.second.activePartDirty = true;
99}
100
101bool AnimatedPartSet::stateTypeEnabled(String const& stateTypeName) const {
102 return m_stateTypes.get(stateTypeName).enabled;

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected