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

Method netElementsNeedLoad

source/game/StarSongbook.cpp:721–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721void Songbook::netElementsNeedLoad(bool) {
722 if (m_songNetState.pullUpdated()) {
723 m_song = m_songNetState.get();
724 m_timeSourceEpoch = m_timeSourceEpochNetState.get();
725 m_epochUpdated = true;
726 m_dataUpdated = true;
727 }
728 m_timeSource = m_timeSourceNetState.get();
729 if (m_activeNetState.get())
730 m_activeCooldown = 3;
731 else
732 m_activeCooldown = 0;
733 m_instrument = m_instrumentNetState.get();
734}
735
736void Songbook::netElementsNeedStore() {
737 if (m_serverMode)

Callers

nothing calls this directly

Calls 2

pullUpdatedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected