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

Method setNetStates

source/game/StarNpc.cpp:826–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826void Npc::setNetStates() {
827 m_uniqueIdNetState.set(uniqueId());
828 m_teamNetState.set(getTeam());
829 m_humanoidStateNetState.set(m_humanoid.state());
830 m_humanoidEmoteStateNetState.set(m_humanoid.emoteState());
831 m_humanoidDanceNetState.set(m_humanoid.dance());
832}
833
834void Npc::getNetStates(bool initial) {
835 setUniqueId(m_uniqueIdNetState.get());

Callers 1

diskLoadObjectMethod · 0.45

Calls 4

emoteStateMethod · 0.80
danceMethod · 0.80
setMethod · 0.45
stateMethod · 0.45

Tested by

no test coverage detected