GCKPlayerInfo 類別

GCKPlayerInfo 類別參考資料

總覽

代表單一玩家的資料。

Deprecated:
遊戲管理員 API 已停止支援,並將在日後推出的版本中移除。

繼承 NSObject。

執行個體方法摘要

(instancetype) - init
 無法使用預設初始化程式。更多...
 

房源摘要

NSString * playerID
 這個播放器的專屬字串 ID。更多...
 
GCKPlayerState playerState
 播放器的目前狀態。更多...
 
id playerData
 遊戲定義的玩家專屬資料。更多...
 
BOOL isConnected
 如果這個播放器處於連線狀態,則為 True。更多...
 
BOOL isControllable
 如果這個播放器是在這個傳送端裝置上建立,則為 True。更多...
 

方法詳細資料

- (instancetype) init

無法使用預設初始化程式。

資源詳細資料

- (NSString*) playerID
readnonatomiccopy

這個播放器的專屬字串 ID。

- (GCKPlayerState) playerState
readnonatomicassign

播放器的目前狀態。

- (id) playerData
readnonatomiccopy

遊戲定義的玩家專屬資料。

遊戲執行期間會保留此資料。可以是可使用 NSJSONSerialization 序列化為 JSON 的物件,也可以是 nil

- (BOOL) isConnected
readnonatomicassign

如果這個播放器處於連線狀態,則為 True。

如果相關聯的 GCKPlayerInfo::playerStateGCKPlayerStateAvailableGCKPlayerStateReadyGCKPlayerStateIdleGCKPlayerStatePlaying,則視為處於連線狀態。

- (BOOL) isControllable
readnonatomicassign

如果這個播放器是在這個傳送端裝置上建立,則為 True。