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

Method netStore

source/game/StarVehicleDatabase.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35ByteArray VehicleDatabase::netStore(VehiclePtr const& vehicle, NetCompatibilityRules rules) const {
36 DataStreamBuffer ds;
37 ds.setStreamCompatibilityVersion(rules);
38
39 ds.write(vehicle->baseConfig().getString("name"));
40 ds.write(vehicle->dynamicConfig());
41 return ds.takeData();
42}
43
44VehiclePtr VehicleDatabase::netLoad(ByteArray const& netStore, NetCompatibilityRules rules) const {
45 DataStreamBuffer ds(netStore);

Callers

nothing calls this directly

Calls 6

getStringMethod · 0.80
baseConfigMethod · 0.80
dynamicConfigMethod · 0.80
writeMethod · 0.45
takeDataMethod · 0.45

Tested by

no test coverage detected