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

Method packData

Engine/source/T3D/lightFlareData.cpp:217–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void LightFlareData::packData( BitStream *stream )
218{
219 Parent::packData( stream );
220
221 stream->writeFlag( mFlareEnabled );
222
223 PACKDATA_ASSET(FlareTexture);
224
225 stream->write( mScale );
226 stream->write( mOcclusionRadius );
227 stream->writeFlag( mRenderReflectPass );
228
229 stream->write( mElementCount );
230
231 for ( U32 i = 0; i < mElementCount; i++ )
232 {
233 mathWrite( *stream, mElementRect[i] );
234 stream->write( mElementDist[i] );
235 stream->write( mElementScale[i] );
236 stream->write( mElementTint[i] );
237 stream->writeFlag( mElementRotate[i] );
238 stream->writeFlag( mElementUseLightColor[i] );
239 }
240}
241
242void LightFlareData::unpackData( BitStream *stream )
243{

Callers

nothing calls this directly

Calls 3

mathWriteFunction · 0.85
writeFlagMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected