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

Method packUpdate

Engine/source/environment/basicClouds.cpp:211–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211U32 BasicClouds::packUpdate( NetConnection *conn, U32 mask, BitStream *stream )
212{
213 U32 retMask = Parent::packUpdate( conn, mask, stream );
214
215 for ( U32 i = 0; i < TEX_COUNT; i++ )
216 {
217 stream->writeFlag( mLayerEnabled[i] );
218
219 stream->write( mTexName[i] );
220
221 stream->write( mTexScale[i] );
222 mathWrite( *stream, mTexDirection[i] );
223 stream->write( mTexSpeed[i] );
224 mathWrite( *stream, mTexOffset[i] );
225
226 stream->write( mHeight[i] );
227 }
228
229 return retMask;
230}
231
232void BasicClouds::unpackUpdate( NetConnection *conn, BitStream *stream )
233{

Callers

nothing calls this directly

Calls 3

mathWriteFunction · 0.85
writeFlagMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected