Play-SDK-CSharp
Public Member Functions | Properties | List of all members
LeanCloud.Play.Player Class Reference

玩家类 More...

Public Member Functions

Task SetCustomProperties (PlayObject properties, PlayObject expectedValues=null)
 设置玩家的自定义属性 More...
 

Properties

string UserId [get, set]
 玩家 ID More...
 
int ActorId [get, set]
 房间玩家 ID More...
 
bool IsActive [get, set]
 判断是不是活跃状态 More...
 
PlayObject CustomProperties [get, set]
 获取自定义属性 More...
 
bool IsLocal [get]
 判断是不是当前客户端玩家 More...
 
bool IsMaster [get]
 判断是不是主机玩家 More...
 

Detailed Description

玩家类

Member Function Documentation

◆ SetCustomProperties()

Task LeanCloud.Play.Player.SetCustomProperties ( PlayObject  properties,
PlayObject  expectedValues = null 
)
inline

设置玩家的自定义属性

Parameters
propertiesProperties.
expectedValuesExpected values.

Property Documentation

◆ ActorId

int LeanCloud.Play.Player.ActorId
getset

房间玩家 ID

The actor identifier.

◆ CustomProperties

PlayObject LeanCloud.Play.Player.CustomProperties
getset

获取自定义属性

The custom properties.

◆ IsActive

bool LeanCloud.Play.Player.IsActive
getset

判断是不是活跃状态

true if is active; otherwise, false.

◆ IsLocal

bool LeanCloud.Play.Player.IsLocal
get

判断是不是当前客户端玩家

true if is local; otherwise, false.

◆ IsMaster

bool LeanCloud.Play.Player.IsMaster
get

判断是不是主机玩家

true if is master; otherwise, false.

◆ UserId

string LeanCloud.Play.Player.UserId
getset

玩家 ID

The user identifier.


The documentation for this class was generated from the following file: