----------------------------------------------------------------------------- packUpdate -----------------------------------------------------------------------------
| 95 | // packUpdate |
| 96 | //----------------------------------------------------------------------------- |
| 97 | U32 WaterBlock::packUpdate(NetConnection* con, U32 mask, BitStream* stream) |
| 98 | { |
| 99 | U32 retMask = Parent::packUpdate(con, mask, stream); |
| 100 | |
| 101 | stream->write( mGridElementSize ); |
| 102 | |
| 103 | if ( stream->writeFlag( mask & UpdateMask ) ) |
| 104 | { |
| 105 | // This is set to allow the user to modify the size of the water dynamically |
| 106 | // in the editor |
| 107 | mathWrite( *stream, mObjScale ); |
| 108 | stream->writeAffineTransform( mObjToWorld ); |
| 109 | } |
| 110 | |
| 111 | return retMask; |
| 112 | } |
| 113 | |
| 114 | //----------------------------------------------------------------------------- |
| 115 | // unpackUpdate |
nothing calls this directly
no test coverage detected