跳轉到主要內容
取得與此端點相關聯之使用者的 PlayFab 實體識別碼。

語法

參數

entityId   PartyString*
程式庫配置的輸出,可能傳回 nullptr
與此端點相關聯之使用者的輸出實體識別碼,或 nullptr。

傳回值

PartyError c_partyErrorSuccess (如果呼叫成功),否則為錯誤碼。可透過 PartyManager::GetErrorMessage() 擷取錯誤碼的人類可讀形式。

備註

傳回的字串與代表該實體之 PFEntityKey 結構的 ID 欄位中的值相同。GetEntityType() 傳回的值則代表 PFEntityKey 的另一半。

如果此端點未與使用者相關聯,entityId 會設為 nullptr。

實體識別碼字串的記憶體在端點的存留期間內保持有效,也就是直到 PartyManager::StartProcessingStateChanges() 提供其 PartyEndpointDestroyedStateChange 和/或 PartyDestroyEndpointCompletedStateChange (視發生的終結類型而定),且所有參考該端點的狀態變更都已傳回給 PartyManager::FinishProcessingStateChanges() 為止。

需求

標頭: Party.h

另請參閱

PartyEndpoint
PartyEndpoint::GetEntityType
最後修改於 2026年10月8日