| 223 | //----------------------------------------------------------------------------- |
| 224 | |
| 225 | void LevelInfo::unpackUpdate(NetConnection *conn, BitStream *stream) |
| 226 | { |
| 227 | Parent::unpackUpdate(conn, stream); |
| 228 | |
| 229 | stream->read( &mNearClip ); |
| 230 | stream->read( &mVisibleDistance ); |
| 231 | stream->read( &mDecalBias ); |
| 232 | |
| 233 | stream->read( &mFogData.density ); |
| 234 | stream->read( &mFogData.densityOffset ); |
| 235 | stream->read( &mFogData.atmosphereHeight ); |
| 236 | stream->read( &mFogData.color ); |
| 237 | |
| 238 | stream->read( &mCanvasClearColor ); |
| 239 | stream->read( &mWorldSize ); |
| 240 | |
| 241 | mAdvancedLightmapSupport = stream->readFlag(); |
| 242 | stream->read( &mAmbientLightBlendPhase ); |
| 243 | mathRead( *stream, &mAmbientLightBlendCurve ); |
| 244 | |
| 245 | String errorStr; |
| 246 | if( !sfxReadAndResolve( stream, &mSoundAmbience, errorStr ) ) |
| 247 | Con::errorf( "%s", errorStr.c_str() ); |
| 248 | mSoundDistanceModel = ( SFXDistanceModel ) stream->readInt( 1 ); |
| 249 | |
| 250 | if( isProperlyAdded() ) |
| 251 | { |
| 252 | _updateSceneGraph(); |
| 253 | |
| 254 | if( mSoundscape ) |
| 255 | { |
| 256 | if( mSoundAmbience ) |
| 257 | mSoundscape->setAmbience( mSoundAmbience ); |
| 258 | else |
| 259 | mSoundscape->setAmbience( &sDefaultAmbience ); |
| 260 | } |
| 261 | |
| 262 | SFX->setDistanceModel( mSoundDistanceModel ); |
| 263 | } |
| 264 | stream->read(&mAccuTextureName); |
| 265 | setLevelAccuTexture(mAccuTextureName); |
| 266 | } |
| 267 | |
| 268 | //----------------------------------------------------------------------------- |
| 269 |
nothing calls this directly
no test coverage detected