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

Method netStore

source/game/StarProjectile.cpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44ByteArray Projectile::netStore(NetCompatibilityRules rules) const {
45 DataStreamBuffer ds;
46 ds.setStreamCompatibilityVersion(rules);
47
48 ds.write(m_config->typeName);
49 ds.write(m_parameters);
50
51 ds.viwrite(m_sourceEntity);
52 ds.write(m_trackSourceEntity);
53
54 ds.write(m_initialSpeed);
55 ds.write(m_powerMultiplier);
56 ds.write(getTeam());
57
58 return ds.data();
59}
60
61EntityType Projectile::entityType() const {
62 return EntityType::Projectile;

Callers

nothing calls this directly

Calls 4

viwriteMethod · 0.80
writeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected