跳到主要内容

Client Extension API Reference

Extension will empower the game online service and make it more flexible. You can handle any event in your way, and make your own service which can interact with PGOS services and your own client and dedicated server.

API List

APIDescription
InvokeVirtualServerInvoke the specified virtual server.

API Details

InvokeVirtualServer

Invoke the specified virtual server.

/**
* Invoke the specified virtual server.
*
* @param Req The request info of the call.
* @param ResultCallback The result callback after the API execution ends, and it will be called in the GAME THREAD. For lifetime safety, it is recommended to use the CreateWeakCallback provided in PgosSDKCpp.h to create a lambda bound to an UObject.
*/
void InvokeVirtualServer(
const FPgosVirtualServerReq& Req,
TFunction<void(const FPgosResult& Ret, const FPgosVirtualServerResp* Data)> ResultCallback) const;

Parameters:

ParamTypeDescription
Reqconst FPgosVirtualServerReq&The request info of the call.
ResultCallbackTFunction<void(const FPgosResult& Ret, const FPgosVirtualServerResp* Data)>The result callback after the API execution ends, and it will be called in the GAME THREAD. For lifetime safety, it is recommended to use the CreateWeakCallback provided in PgosSDKCpp.h to create a lambda bound to an UObject.

Return: void