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

Method netStore

source/game/StarItemDrop.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119ByteArray ItemDrop::netStore(NetCompatibilityRules rules) const {
120 DataStreamBuffer ds;
121 ds.setStreamCompatibilityVersion(rules);
122
123 ds.write(itemSafeDescriptor(m_item));
124 ds.write(m_eternal);
125 ds.write(m_dropAge);
126 ds.write(m_intangibleTimer);
127
128 return ds.takeData();
129}
130
131EntityType ItemDrop::entityType() const {
132 return EntityType::ItemDrop;

Callers

nothing calls this directly

Calls 4

itemSafeDescriptorFunction · 0.85
writeMethod · 0.45
takeDataMethod · 0.45

Tested by

no test coverage detected