# Function: add() (/nqtr/index/namespaces/RegisteredRooms/functions/add)



\> **add**(...`rooms`): `void`

Defined in: [src/registries/RegisteredRooms.ts:20](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/registries/RegisteredRooms.ts#L20)

Save a room in the registered rooms, and their location and map if they are not already registered.
If the room already exists, it will be overwritten.

## Parameters [#parameters]

### rooms [#rooms]

...([`RoomInterface`](/nqtr/index/interfaces/RoomInterface) | [`RoomInterface`](/nqtr/index/interfaces/RoomInterface)\[])\[]

The room to save.

## Returns [#returns]

`void`
