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

Method netStore

source/game/StarToolUser.cpp:613–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613void ToolUser::NetItem::netStore(DataStream& ds, NetCompatibilityRules rules) const {
614 if (!checkWithRules(rules)) return;
615 const_cast<NetItem*>(this)->updateItemDescriptor();
616 m_itemDescriptor.netStore(ds, rules);
617 if (auto netItem = as<NetElement>(m_item.get()))
618 netItem->netStore(ds, rules);
619}
620
621void ToolUser::NetItem::netLoad(DataStream& ds, NetCompatibilityRules rules) {
622 if (!checkWithRules(rules)) return;

Callers 1

writeNetDeltaMethod · 0.45

Calls 2

updateItemDescriptorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected