跳到主要内容

Client TitleRegionConfigData API Reference

Title Region Config Data is a set of data associated with the title region. It is commonly used to store configuration data that is applicable across the title-region-wide, such as level experience ramp, damage rules, and so on.

API List

APIDescription
GetTitleRegionConfigKVDataQuery the specified key-value data of the title region config data.
GetAllTitleRegionConfigKVDataQuery all key-value data of the title region config data.

API Details

GetTitleRegionConfigKVData

Query the specified key-value data of the title region config data.

/**
* Query the specified key-value data of the title region config data.
*
* @param QueryKeys Keys to query
* @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 GetTitleRegionConfigKVData(
const TArray<FString>& QueryKeys,
TFunction<void(const FPgosResult& Ret, const FPgosTitleRegionConfigKVDataQueryResult* Data)> ResultCallback) const;

Parameters:

ParamTypeDescription
QueryKeysconst TArray<FString>&Keys to query
ResultCallbackTFunction<void(const FPgosResult& Ret, const FPgosTitleRegionConfigKVDataQueryResult* 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

GetAllTitleRegionConfigKVData

Query all key-value data of the title region config data.

/**
* Query all key-value data of the title region config data.
*
* @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 GetAllTitleRegionConfigKVData(
TFunction<void(const FPgosResult& Ret, const FPgosTitleRegionConfigKVDataQueryResult* Data)> ResultCallback) const;

Parameters:

ParamTypeDescription
ResultCallbackTFunction<void(const FPgosResult& Ret, const FPgosTitleRegionConfigKVDataQueryResult* 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