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