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

Method netStore

source/game/StarPlayer.cpp:2442–2452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2440}
2441
2442ByteArray Player::netStore(NetCompatibilityRules rules) {
2443 DataStreamBuffer ds;
2444 ds.setStreamCompatibilityVersion(rules);
2445
2446 ds.write(*uniqueId());
2447 ds.write(m_description);
2448 ds.write(m_modeType);
2449 ds.write(m_identity);
2450
2451 return ds.data();
2452}
2453
2454void Player::finalizeCreation() {
2455 m_blueprints = make_shared<PlayerBlueprints>();

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected