| Package | Description |
|---|---|
| cn.leancloud.play.codec | |
| cn.leancloud.play.collection | |
| cn.leancloud.play.plugin | |
| cn.leancloud.play.plugin.request |
| Modifier and Type | Method and Description |
|---|---|
static PlayObject |
CastTypeUtils.castToPlayObject(Object value) |
| Modifier and Type | Field and Description |
|---|---|
static PlayObject |
PlayObject.EMPTY_OBJECT |
| Modifier and Type | Method and Description |
|---|---|
PlayObject |
PlayObject.fluentClear() |
PlayObject |
PlayObject.fluentPut(String key,
Object value) |
PlayObject |
PlayObject.fluentPutAll(Map<? extends String,?> m) |
PlayObject |
PlayObject.fluentRemove(Object key) |
PlayObject |
PlayArray.getPlayObject(int index) |
PlayObject |
PlayObject.getPlayObject(String key) |
static PlayObject |
PlayObject.toPlayObject(Map<Object,Object> inputMap) |
| Modifier and Type | Method and Description |
|---|---|
PlayObject |
BoundRoom.getCustomRoomProperties()
获取房间自定义属性。修改返回的属性无法实际修改房间属性,请使用
BoundRoom.updateRoomProperty(cn.leancloud.play.collection.PlayObject) 修改房间属性。 |
PlayObject |
Actor.getProperties()
获取玩家在房间内的自定义属性。修改返回的属性无法实际修改玩家属性,请使用
BoundRoom.updatePlayerProperty(int, cn.leancloud.play.collection.PlayObject) 修改玩家属性。 |
| Modifier and Type | Method and Description |
|---|---|
void |
BoundRoom.sendEventToActors(List<Integer> toActorsIds,
int fromActorId,
byte eventId,
PlayObject eventData,
SendEventOptions options)
发送事件给目标 Actor。
|
void |
BoundRoom.sendEventToInterestGroup(byte toInterestGroup,
int fromActorId,
byte eventId,
PlayObject eventData,
SendEventOptions options)
发送事件给目标接收组
|
void |
BoundRoom.sendEventToReceiverGroup(ReceiverGroup toReceiverGroup,
int fromActorId,
byte eventId,
PlayObject eventData,
SendEventOptions options)
发送事件给目标接收组
|
void |
BoundRoom.updatePlayerProperty(int targetActorId,
PlayObject valuesToSet)
更改房间玩家自定义属性。
|
void |
BoundRoom.updatePlayerProperty(int targetActorId,
PlayObject valuesToSet,
PlayObject expectedValues)
更改房间玩家自定义属性
|
void |
BoundRoom.updateRoomProperty(PlayObject valuesToSet)
更改房间自定义属性
|
void |
BoundRoom.updateRoomProperty(PlayObject valuesToSet,
PlayObject expectedValues)
更改房间自定义属性
|
| Modifier and Type | Method and Description |
|---|---|
PlayObject |
CreateRoomRequest.getCustomRoomProperties()
获取房间自定义属性
|
PlayObject |
SendEventRequest.getEventData()
获取事件内容
|
PlayObject |
SetRoomPropertiesRequest.getExpectedValues()
获取 CAS 操作用于匹配的房间自定义属性。设置了用于匹配的自定义属性后,只有当房间自定义属性符合
匹配的值后更新房间自定义属性操作才会生效。
|
PlayObject |
SetPlayerPropertiesRequest.getExpectedValues()
获取 CAS 操作用于匹配的玩家自定义属性。设置了用于匹配的自定义属性后,只有当玩家在房间内属性符合
匹配的值后更新玩家属性操作才会生效。
|
PlayObject |
JoinRoomRequest.getMatchProperties()
获取匹配房间条件。传递该参数表示只有待加入房间自定义属性满足匹配条件时才能加入房间
|
PlayObject |
JoinRoomRequest.getPlayerCustomRoomProperties()
获取房间玩家自定义属性
|
PlayObject |
SetRoomPropertiesRequest.getProperties()
获取房间自定义属性
|
PlayObject |
SetPlayerPropertiesRequest.getProperties()
获取房间玩家自定义属性
|
| Modifier and Type | Method and Description |
|---|---|
SendEventRequest |
SendEventRequest.setEventData(PlayObject data)
设置事件内容
|
SetRoomPropertiesRequest |
SetRoomPropertiesRequest.setExpectedValues(PlayObject casAttr)
设置 CAS 操作用于匹配的房间自定义属性。设置了用于匹配的自定义属性后,只有当房间自定义属性符合
匹配的值后更新房间自定义属性操作才会生效。
|
SetPlayerPropertiesRequest |
SetPlayerPropertiesRequest.setExpectedValues(PlayObject casAttr)
设置 CAS 操作用于匹配的玩家自定义属性。设置了用于匹配的自定义属性后,只有当玩家在房间内属性符合
匹配的值后更新玩家属性操作才会生效。
|
JoinRoomRequest |
JoinRoomRequest.setPlayerCustomRoomProperties(PlayObject attr)
设置房间玩家自定义属性
|
SetRoomPropertiesRequest |
SetRoomPropertiesRequest.setProperties(PlayObject attr)
设置房间自定义属性
|
SetPlayerPropertiesRequest |
SetPlayerPropertiesRequest.setProperties(PlayObject attr)
设置房间玩家自定义属性
|
CreateRoomRequest |
CreateRoomRequest.setRoomProperties(PlayObject attr)
设置房间自定义属性
|
Copyright © 2019 LeanCloud. All rights reserved.