| Package | Description |
|---|---|
| cn.leancloud.play.plugin | |
| cn.leancloud.play.plugin.context |
| Class and Description |
|---|
| BeforeJoinRoomContext |
| BeforeLeaveRoomContext |
| BeforeSendEventContext |
| BeforeSetPlayerPropertiesContext |
| BeforeSetRoomPropertiesContext |
| BeforeSetRoomSystemPropertiesContext |
| ContextStatus
Hook Context 状态
|
| CreateRoomContext |
| DestroyRoomContext |
| Class and Description |
|---|
| Context
每个 Hook 被调用时都会传入一个 Context。Context 内封装着 Hook 的名称、触发 Hook 调用的玩家
请求参数,以及当前 Hook 请求的处理状态。Hook 处理结果也是通过 Context 通知给 Game Server。可以将
Context 当做 Hook 与 Game Server 之间通信、交互的桥梁。
|
| ContextStatus
Hook Context 状态
|
| DeferableContext |
| SkipableContext |
Copyright © 2019 LeanCloud. All rights reserved.