| 212 | |
| 213 | |
| 214 | U32 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 | |
| 235 | void BasicClouds::unpackUpdate( NetConnection *conn, BitStream *stream ) |
| 236 | { |