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

Method setStateTypeEnabled

source/base/StarAnimatedPartSet.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void AnimatedPartSet::setStateTypeEnabled(String const& stateTypeName, bool enabled) {
82 auto& stateType = m_stateTypes.get(stateTypeName);
83 if (stateType.enabled != enabled) {
84 stateType.enabled = enabled;
85 for (auto& pair : m_parts)
86 pair.second.activePartDirty = true;
87 }
88}
89
90void AnimatedPartSet::setEnabledStateTypes(StringList const& stateTypeNames) {
91 for (auto& pair : m_stateTypes)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected