-
Notifications
You must be signed in to change notification settings - Fork 34
rc_client_create_achievement_list
Creates a new list of achievements matching the specified category and grouping.
rc_client_achievement_list_t* rc_client_create_achievement_list(
rc_client_t* client,
int category,
int grouping
);
client
The rc_client_t
containing a loaded game.
category
The category of achievements to retrieve.
Valid values are RC_CLIENT_ACHIEVEMENT_CATEGORY_CORE, RC_CLIENT_ACHIEVEMENT_CATEGORY_UNOFFICIAL, and RC_CLIENT_ACHIEVEMENT_CATEGORY_CORE_AND_UNOFFICIAL.
grouping
How the achievements should be grouped within the list.
grouping | description |
---|---|
RC_CLIENT_ACHIEVEMENT_LIST_GROUPING_LOCK_STATE | Separates achievements into Locked, Unofficial, Unsupported, and Unlocked buckets. |
RC_CLIENT_ACHIEVEMENT_LIST_GROUPING_PROGRESS | Separates achievements into Active Challenges, Recently Unlocked, Almost There, Locked, Unofficial, Unsupported, and Unlocked buckets. |
Pointer to a rc_client_achievement_list_t
object containing the achievements for the game, grouped as requested.
It must be released by calling rc_client_destroy_achievement_list.
typedef struct rc_client_achievement_list_t
{
rc_client_achievement_bucket_t* buckets;
uint32_t num_buckets;
} rc_client_achievement_list_t;
buckets
An array of buckets each containing 1 or more achievements.
num_buckets
The number of elements in the buckets
array.
typedef struct rc_client_achievement_bucket_t {
rc_client_achievement_t** achievements;
uint32_t num_achievements;
const char* label;
uint32_t subset_id;
uint8_t bucket_type;
} rc_client_achievement_bucket_t;
achievements
An array of pointers to achievement information. Each item is the same data returned by rc_client_get_achievement_info.
num_achievements
The number of elements in the achievements
array.
label
A label for the bucket. This is automatically generated and always in English. If you want to support other languages, you should build the label yourself using the subset_id
and id
fields.
subset_id
A unique identifier for a subset prefix. If 0
, no prefix should be used.
bucket_type
A unique identifier for the bucket.
id | label | description |
---|---|---|
RC_CLIENT_ACHIEVEMENT_BUCKET_ACTIVE_CHALLENGE | Active Challenges | If implemented, a challenge indicator for the achievement is visible. |
RC_CLIENT_ACHIEVEMENT_BUCKET_RECENTLY_UNLOCKED | Recently Unlocked | Any achievements unlocked in the last ten minutes. |
RC_CLIENT_ACHIEVEMENT_BUCKET_ALMOST_THERE | Almost There | Any achievements that track progress where the progress percentage is 80% or more. |
RC_CLIENT_ACHIEVEMENT_BUCKET_LOCKED | Locked | Achievements the player has not yet earned (if not present in the Active Challenge, Almost There, or Unofficial buckets). |
RC_CLIENT_ACHIEVEMENT_BUCKET_UNOFFICIAL | Unofficial | Achievements that are not eligible to be earned at this time. |
RC_CLIENT_ACHIEVEMENT_BUCKET_UNSUPPORTED | Unsupported | Achievements that cannot be earned due to incompatibility with the current client. |
RC_CLIENT_ACHIEVEMENT_BUCKET_UNLOCKED | Unlocked | Achievements the player has previously earned (if not present in the Recently Unlocked bucket). |
The rc_client_achievement_list_t
instance created by this function must be released by calling rc_client_destroy_achievement_list.
The individual achievements in the list are owned by the loaded game and will be valid as long as the game remains loaded. They are the same pointers returned by rc_client_get_achievement_info. Most of the data in each achievement will be updated dynamically. See rc_client_get_achievement_info for fields that are only updated on demand.
Minimum version: 11.0.0
rc_client_get_achievement_info
- rc_client_abort_async
- rc_client_create
- rc_client_destroy
- rc_client_enable_logging
- rc_client_get_encore_mode_enabled
- rc_client_get_hardcore_enabled
- rc_client_get_spectator_mode_enabled
- rc_client_get_unofficial_enabled
- rc_client_get_user_agent_clause
- rc_client_get_userdata
- rc_client_set_encore_mode_enabled
- rc_client_set_hardcore_enabled
- rc_client_set_host
- rc_client_set_spectator_mode_enabled
- rc_client_set_unofficial_enabled
- rc_client_set_userdata
- rc_client_begin_login_with_password
- rc_client_begin_login_with_token
- rc_client_get_user_info
- rc_client_get_user_game_summary
- rc_client_logout
- rc_client_user_get_image_url
- rc_client_achievement_get_image_url
- rc_client_begin_change_media
- rc_client_begin_change_media_from_hash
- rc_client_begin_fetch_leaderboard_entries
- rc_client_begin_fetch_leaderboard_entries_around_user
- rc_client_begin_identify_and_load_game
- rc_client_begin_load_game
- rc_client_create_achievement_list
- rc_client_create_leaderboard_list
- rc_client_destroy_achievement_list
- rc_client_destroy_leaderboard_entry_list
- rc_client_destroy_leaderboard_list
- rc_client_game_get_image_url
- rc_client_get_achievement_info
- rc_client_get_game_info
- rc_client_get_leaderboard_info
- rc_client_get_load_game_state
- rc_client_get_rich_presence_message
- rc_client_has_achievements
- rc_client_has_leaderboards
- rc_client_has_rich_presence
- rc_client_is_game_loaded
- rc_client_leaderboard_entry_get_user_image_url
- rc_client_unload_game
- rc_client_can_pause
- rc_client_deserialize_progress
- rc_client_do_frame
- rc_client_idle
- rc_client_is_processing_required
- rc_client_progress_size
- rc_client_reset
- rc_client_serialize_progress
- rc_client_set_event_handler
- rc_client_set_read_memory_function
- rc_client_begin_load_raintegration
- rc_client_raintegration_activate_menu_item
- rc_client_raintegration_get_achievement_state
- rc_client_raintegration_get_menu
- rc_client_raintegration_has_modifications
- rc_client_raintegration_rebuild_submenu
- rc_client_raintegration_set_console_id
- rc_client_raintegration_set_event_handler
- rc_client_raintegration_set_get_game_name_function
- rc_client_raintegration_set_write_memory_function
- rc_client_raintegration_update_main_window_handle
- rc_client_raintegration_update_menu_item
- rc_client_unload_raintegration
- rc_runtime_activate_achievement
- rc_runtime_activate_lboard
- rc_runtime_activate_richpresence
- rc_runtime_deactivate_achievement
- rc_runtime_deactivate_lboard
- rc_runtime_deserialize_progress
- rc_runtime_destroy
- rc_runtime_do_frame
- rc_runtime_format_achievement_measured
- rc_runtime_format_lboard_value
- rc_runtime_get_achievement
- rc_runtime_get_achievement_measured
- rc_runtime_get_lboard
- rc_runtime_get_richpresence
- rc_runtime_init
- rc_runtime_invalidate_address
- rc_runtime_progress_size
- rc_runtime_reset
- rc_runtime_serialize_progress
- rc_runtime_validate_addresses
- rc_hash_destroy_iterator
- rc_hash_generate_from_buffer
- rc_hash_generate_from_file
- rc_hash_init_custom_cdreader
- rc_hash_init_custom_filereader
- rc_hash_init_error_message_callback
- rc_hash_init_verbose_message_callback
- rc_hash_initialize_iterator
- rc_hash_iterate
- rc_api_destroy_fetch_user_unlocks_response
- rc_api_destroy_login_response
- rc_api_destroy_start_session_response
- rc_api_init_fetch_user_unlocks_request
- rc_api_init_login_request
- rc_api_init_start_session_request
- rc_api_process_fetch_user_unlocks_response
- rc_api_process_login_response
- rc_api_process_start_session_response
- rc_api_destroy_award_achievement_response
- rc_api_destroy_fetch_game_data_response
- rc_api_destroy_ping_response
- rc_api_destroy_resolve_hash_response
- rc_api_destroy_submit_lboard_entry_response
- rc_api_init_award_achievement_request
- rc_api_init_fetch_game_data_request
- rc_api_init_fetch_image_request
- rc_api_init_ping_request
- rc_api_init_resolve_hash_request
- rc_api_init_submit_lboard_entry_request
- rc_api_process_award_achievement_response
- rc_api_process_fetch_game_data_response
- rc_api_process_ping_response
- rc_api_process_resolve_hash_response
- rc_api_process_submit_lboard_entry_response
- rc_api_destroy_fetch_achievement_info_response
- rc_api_destroy_fetch_game_titles_response
- rc_api_destroy_fetch_games_list_response
- rc_api_destroy_fetch_leaderboard_info_response
- rc_api_init_fetch_achievement_info_request
- rc_api_init_fetch_game_titles_request
- rc_api_init_fetch_games_list_request
- rc_api_init_fetch_leaderboard_info_request
- rc_api_process_fetch_achievement_info_response
- rc_api_process_fetch_game_titles_server_response
- rc_api_process_fetch_games_list_response
- rc_api_process_fetch_leaderboard_info_response