跳到主要内容

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 query_keys Keys to query
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetTitleRegionConfigKVData(
const pgos::pvector<pgos::pstring>& query_keys,
PgosDataCallback<TitleRegionConfigKVDataQueryResult> result_callback);

Parameters:

ParamTypeDescription
query_keysconst std::vector<std::string>&Keys to query
result_callbackPgosDataCallback<TitleRegionConfigKVDataQueryResult>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

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 result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetAllTitleRegionConfigKVData(
PgosDataCallback<TitleRegionConfigKVDataQueryResult> result_callback);

Parameters:

ParamTypeDescription
result_callbackPgosDataCallback<TitleRegionConfigKVDataQueryResult>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

Return: void