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

Method netUpdate

source/game/StarLiquidTypes.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 : LiquidLevel(liquid, level), pressure(pressure), source(source) {}
35
36LiquidNetUpdate LiquidStore::netUpdate() const {
37 return LiquidNetUpdate{liquid, floatToByte(level, true)};
38}
39
40Maybe<LiquidNetUpdate> LiquidStore::update(LiquidId liquid, float level, float pressure) {
41 if (source) {

Callers 2

queueUpdatePacketsMethod · 0.80
writeNetTileMethod · 0.80

Calls 1

floatToByteFunction · 0.85

Tested by

no test coverage detected