# Function: onRoomDestroyed
▸ onRoomDestroyed(this
: void, handler
: RoomDestroyedEventHandler): void
监听房间销毁
# 参数:
属性 | 类型 | 描述 |
---|---|---|
this | void | - |
handler | RoomDestroyedEventHandler | 事件触发的回调方法 |
RoomDestroyedEventHandler: MogsEventHandler‹RoomDestroyedEvent›
RoomDestroyedEvent
结构
属性 | 类型 | 描述 |
---|---|---|
type | RoomDestroyed | 事件类型,由具体的事件构造时提供 |
# 返回值:
void