## Constructor

#### new Player()

### Members

#### readonly actorId :Number

  房间玩家 ID

#### readonly customProperties :Object

  获取自定义属性

#### readonly isActive :Boolean

  判断是不是活跃状态

#### readonly isLocal :Boolean

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

#### readonly isMaster :Boolean

  判断是不是主机玩家

#### readonly userId :String

  玩家 ID

### Methods

#### async setCustomProperties(properties, optsopt) [async]

  设置玩家的自定义属性

  ##### Parameters:

  Name | Type | Attributes | Description
  --- | --- | --- | ---
  `properties` | Object |  | 自定义属性

  `opts`

  Object

  <optional>

  设置选项

  ###### Properties

  Name | Type | Attributes | Description
  --- | --- | --- | ---
  `expectedValues` | Object | <optional> | 期望属性，用于 CAS 检测