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

Method packUpdate

Engine/source/environment/basicClouds.cpp:214–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

mathWriteFunction · 0.85
writeFlagMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected