SRC/LOADING/rooms.cpp
/// \brief reads a room sector definition.
\brief reads a room sector definition.
\ brief reads a room sector definition .
uint8_t * read_tr_room_sector(uint8_t * const srcPtr, tr_room_sector_t & sector)
{
    uint8_t * src = srcPtr;
	sector.fd_index = *(uint16_t*)(src); src+=2;
	sector.box_index = *(uint16_t*)(src); src+=2;
	sector.room_below = *(uint8_t*)(src); src+=1;
	sector.floor = *(uint8_t*)(src); src+=1;
	sector.room_above = *(uint8_t*)(src); src+=1;
	sector.ceiling = *(uint8_t*)(src); src+=1;
	return src;
}
uint8_t * read_tr_room_sector ( uint8_t * const srcPtr , tr_room_sector_t & sector ) { uint8_t * src = srcPtr ; sector . fd_index = * ( uint16_t * ) ( src ) ; src += 2 ; sector . box_index = * ( uint16_t * ) ( src ) ; src += 2 ; sector . room_below = * ( uint8_t * ) ( src ) ; src += 1 ; sector . floor = * ( uint8_t * ) ( src ) ; src += 1 ; sector . room_above = * ( uint8_t * ) ( src ) ; src += 1 ; sector . ceiling = * ( uint8_t * ) ( src ) ; src += 1 ; return src ; }
\brief reads a room sector definition.
\ brief reads a room sector definition .