跳轉到主要內容
建立 game_server 實體權杖,並傳回新的或現有的 game_server 實體。

語法

參數

entityHandle   PFEntityHandle 用於驗證的 PFEntityHandle。 request   PFAuthenticationAuthenticateCustomIdRequest* 已填入的要求物件。 async   XAsyncBlock*
Inout
用於非同步作業的 XAsyncBlock。

傳回值

類型:HRESULT 此 API 作業的結果代碼。

備註

此 API 適用於 Win32、Linux 和 macOS。建立或傳回 game_server 實體權杖。呼叫端必須是遊戲實體。非同步工作完成時,呼叫 PFAuthenticationAuthenticateGameServerWithCustomIdGetResultSize 和 PFAuthenticationAuthenticateGameServerWithCustomIdGetResult 以取得結果。

需求

標頭: PFAuthentication.h

另請參閱

PFAuthentication 成員
最後修改於 2026年10月6日