そのプレイヤーのカスタム識別子を使用して、外部サーバー バックエンドからゲーム クライアントに安全にログインします。 サーバー カスタム ID とクライアント カスタム ID は相互に排他的であり、同じプレイヤー アカウントを取得するために使用することはできません。
構文
HRESULT PFAuthenticationServerLoginWithServerCustomIdAsync(
PFServiceConfigHandle serviceConfigHandle,
const char* secretKey,
const PFAuthenticationLoginWithServerCustomIdRequest* request,
XAsyncBlock* async
)
パラメーター
serviceConfigHandle PFServiceConfigHandle
PFServiceConfigCreateHandle 呼び出しから返される PFServiceConfigHandle。
secretKey char*
In_z
サービス要求の認証に使用されるタイトル秘密鍵。
request
PFAuthenticationLoginWithServerCustomIdRequest*
設定された要求オブジェクト。
async XAsyncBlock*
Inout
非同期操作の XAsyncBlock。
戻り値
型: HRESULT
この API 操作の結果コード。
解説
この API は、Win32、Linux、MacOS で使用できます。 非同期タスクが完了したら、PFAuthenticationServerLoginWithServerCustomIdGetResult を呼び出して結果を取得します。
要件
ヘッダー: PFAuthentication.h