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

Method initNetVersion

source/game/StarToolUser.cpp:606–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606void ToolUser::NetItem::initNetVersion(NetElementVersion const* version) {
607 m_netVersion = version;
608 m_itemDescriptor.initNetVersion(m_netVersion);
609 if (auto netItem = as<NetElement>(m_item.get()))
610 netItem->initNetVersion(m_netVersion);
611}
612
613void ToolUser::NetItem::netStore(DataStream& ds, NetCompatibilityRules rules) const {
614 if (!checkWithRules(rules)) return;

Callers 3

netLoadMethod · 0.45
readNetDeltaMethod · 0.45
setMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected