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

Method packUpdate

Engine/source/forest/forest.cpp:219–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219U32 Forest::packUpdate( NetConnection *connection, U32 mask, BitStream *stream )
220{
221 U32 retMask = Parent::packUpdate( connection, mask, stream );
222
223 if ( stream->writeFlag( mask & MediaMask ) )
224 stream->writeString( mDataFileName );
225
226 if ( stream->writeFlag( mask & LodMask ) )
227 {
228 stream->write( mReflectionLodScalar );
229 }
230
231 return retMask;
232}
233
234void Forest::unpackUpdate(NetConnection *connection, BitStream *stream)
235{

Callers

nothing calls this directly

Calls 3

writeFlagMethod · 0.45
writeStringMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected