Server 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
| API | Description |
|---|---|
| GetTitleRegionConfigKVData | Query the specified key-value data of the title region config data. |
| GetAllTitleRegionConfigKVData | Query 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:
| Param | Type | Description |
|---|---|---|
| QueryKeys | const TArray<FString>& | Keys to query |
| ResultCallback | TFunction<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:
| Param | Type | Description |
|---|---|---|
| ResultCallback | TFunction<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