102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_util_actor.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <dttr_core.h>
#include <dttr_pcdogs.h>

Go to the source code of this file.

Functions

static DTTR_PCDOGS_T_Actor_StateDTTR_Util_GetActiveActor (const DTTR_Core_Context *ctx)
 Return the current active actor, or NULL when unavailable or inactive.
static bool DTTR_Util_SameActor (const DTTR_PCDOGS_T_Actor_State *left, const DTTR_PCDOGS_T_Actor_State *right)
 Report whether left and right are the same non-NULL actor.

Function Documentation

◆ DTTR_Util_GetActiveActor()

DTTR_PCDOGS_T_Actor_State * DTTR_Util_GetActiveActor ( const DTTR_Core_Context * ctx)
inlinestatic

Return the current active actor, or NULL when unavailable or inactive.

Helpers for live actor lookup and identity checks.

This header is exposed through dttr_sdk.h only when DTTR_SDK_ENABLE_UNSTABLE is set. It depends on PCDOGS layouts that are still being mapped, so source and ABI details may change without notice.

Definition at line 24 of file dttr_util_actor.h.

References ctx, DTTR_PCDOGS_F_Entity_GetActiveActorFromList, DTTR_ResultOK(), and NULL.

◆ DTTR_Util_SameActor()

bool DTTR_Util_SameActor ( const DTTR_PCDOGS_T_Actor_State * left,
const DTTR_PCDOGS_T_Actor_State * right )
inlinestatic

Report whether left and right are the same non-NULL actor.

Definition at line 34 of file dttr_util_actor.h.

References NULL.