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

Method setState

source/game/StarNetworkedAnimator.cpp:297–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297bool NetworkedAnimator::setState(String const& stateType, String const& state, bool startNew) {
298 if (m_animatedParts.setActiveState(stateType, state, startNew)) {
299 m_stateInfo[stateType].startedEvent.trigger();
300 return true;
301 } else {
302 return false;
303 }
304}
305
306String NetworkedAnimator::state(String const& stateType) const {
307 return m_animatedParts.activeState(stateType).stateName;

Callers

nothing calls this directly

Calls 2

setActiveStateMethod · 0.80
triggerMethod · 0.45

Tested by

no test coverage detected