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

Method unpackUpdate

Engine/source/scene/zones/sceneSimpleZone.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117//-----------------------------------------------------------------------------
118
119void SceneSimpleZone::unpackUpdate( NetConnection* connection, BitStream* stream )
120{
121 Parent::unpackUpdate( connection, stream );
122
123 if( stream->readFlag() ) // AmbientMask
124 {
125 mUseAmbientLightColor = stream->readFlag();
126 mAmbientLightColor.red = stream->readFloat( 7 );
127 mAmbientLightColor.green = stream->readFloat( 7 );
128 mAmbientLightColor.blue = stream->readFloat( 7 );
129 mAmbientLightColor.alpha = stream->readFloat( 7 );
130 }
131}
132
133//-----------------------------------------------------------------------------
134

Callers

nothing calls this directly

Calls 2

readFlagMethod · 0.80
readFloatMethod · 0.80

Tested by

no test coverage detected