public interface Plugin
| Modifier and Type | Method and Description |
|---|---|
BoundRoom |
getBoundRoom()
获取与当前 Game Hook 绑定的 Room 实例
|
void |
onBeforeJoinRoom(BeforeJoinRoomContext ctx)
加入房间前调用
|
void |
onBeforeLeaveRoom(BeforeLeaveRoomContext ctx)
离开房间前调用
|
void |
onBeforeSendEvent(BeforeSendEventContext ctx)
发送事件前调用
|
void |
onBeforeSetPlayerProperties(BeforeSetPlayerPropertiesContext ctx)
设置房间玩家自定义属性前调用
|
void |
onBeforeSetRoomProperties(BeforeSetRoomPropertiesContext ctx)
设置房间自定义属性前调用
|
void |
onBeforeSetRoomSystemProperties(BeforeSetRoomSystemPropertiesContext ctx)
设置房间系统属性前调用
|
void |
onCreateRoom(CreateRoomContext ctx)
创建房间前调用
|
void |
onDestroyRoom(DestroyRoomContext ctx)
房间关闭前调用
|
BoundRoom getBoundRoom()
void onCreateRoom(CreateRoomContext ctx)
ctx - contextvoid onDestroyRoom(DestroyRoomContext ctx)
ctx - contextvoid onBeforeJoinRoom(BeforeJoinRoomContext ctx)
ctx - contextvoid onBeforeLeaveRoom(BeforeLeaveRoomContext ctx)
ctx - contextvoid onBeforeSetRoomProperties(BeforeSetRoomPropertiesContext ctx)
ctx - contextvoid onBeforeSetPlayerProperties(BeforeSetPlayerPropertiesContext ctx)
ctx - contextvoid onBeforeSetRoomSystemProperties(BeforeSetRoomSystemPropertiesContext ctx)
ctx - contextvoid onBeforeSendEvent(BeforeSendEventContext ctx)
ctx - contextCopyright © 2019 LeanCloud. All rights reserved.