void TommyCoin::Read( MemoryInputStream& inStream ) { if( inStream.GetRemainingBytes() >= 3 * sizeof( float ) + sizeof( XMVECTOR ) ) { XMVECTORF32 location = { 0 }; inStream.Read( location.f[ 0 ] ); inStream.Read( location.f[ 1 ] ); SetLocation( location ); float rotation; inStream.Read( rotation ); SetRotation( rotation ); XMVECTOR color; inStream.Read( color ); SetColor( color ); } }