MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / packUpdate

Method packUpdate

Engine/source/environment/waterBlock.cpp:97–112  ·  view source on GitHub ↗

----------------------------------------------------------------------------- packUpdate -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

95// packUpdate
96//-----------------------------------------------------------------------------
97U32 WaterBlock::packUpdate(NetConnection* con, U32 mask, BitStream* stream)
98{
99 U32 retMask = Parent::packUpdate(con, mask, stream);
100
101 stream->write( mGridElementSize );
102
103 if ( stream->writeFlag( mask & UpdateMask ) )
104 {
105 // This is set to allow the user to modify the size of the water dynamically
106 // in the editor
107 mathWrite( *stream, mObjScale );
108 stream->writeAffineTransform( mObjToWorld );
109 }
110
111 return retMask;
112}
113
114//-----------------------------------------------------------------------------
115// unpackUpdate

Callers

nothing calls this directly

Calls 4

mathWriteFunction · 0.85
writeAffineTransformMethod · 0.80
writeMethod · 0.45
writeFlagMethod · 0.45

Tested by

no test coverage detected