Skip to content

rc_runtime_get_achievement

Jamiras edited this page Sep 7, 2020 · 2 revisions

Gets a reference to the rc_trigger_t for an achievement loaded by rc_runtime_activate_achievement.

Syntax

rc_trigger_t* rc_runtime_get_achievement(
    const rc_runtime_t* runtime,
    unsigned id
);

Parameters

runtime

Pointer to the runtime object that contains the achievement trigger reference.

id

The unique identifier of the achievement trigger.

Return value

A pointer to the rc_trigger_t associated to the achievement, or NULL if not found.

Remarks

It is dangerous to directly interact with the raw trigger object. This function is provided primarily for accessing the measured_value and measured_target fields for reporting progress and the debugging features of the toolkit.

Minimum version: 9.0.0

See also

rc_runtime_activate_achievement

rc_runtime_deactivate_achievement

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally