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

Method packUpdate

Engine/source/environment/waterBlock.cpp:96–111  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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