RoomManager
类:房间应用管理器
Methods
addRoom(room)
添加单个房间
Parameters:
| Name | Type | Description |
|---|---|---|
| room | Glodon.Bimface.Earth.Plugins.Rooms.Room | 房间对象 |
clearRooms(condition)
清除房间对象
Parameters:
| Name | Type | Description |
|---|---|---|
| condition | Object | all: 设置为true则清除所有房间,ids: 根据房间id列表进行清除 |
getAllRooms()
获取所有房间对象
Returns:
| Type | Description |
|---|---|
| Array | 房间对象列表 |
getRoomById(id)
根据ID获取房间对象
Parameters:
| Name | Type | Description |
|---|---|---|
| id | String | 房间的ID |
Returns:
| Type | Description |
|---|---|
| Object | 房间对象 |
hideRooms(condition)
隐藏房间对象
Parameters:
| Name | Type | Description |
|---|---|---|
| condition | Object | all: 设置为true则隐藏所有房间,ids: 根据房间id列表隐藏 |
showRooms(condition)
显示房间对象
Parameters:
| Name | Type | Description |
|---|---|---|
| condition | Object | all: 设置为true则显示所有房间,ids: 根据房间id列表显示 |