102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_util_actor.h
Go to the documentation of this file.
1
6
7#ifndef DTTR_UTIL_ACTOR_H
8#define DTTR_UTIL_ACTOR_H
9
10#include <stdbool.h>
11#include <stddef.h>
12
13#include <dttr_core.h>
14#ifndef DTTR_SDK_ENABLE_UNSTABLE
15#error "Define DTTR_SDK_ENABLE_UNSTABLE before including dttr_util_actor.h"
16#endif
17#include <dttr_pcdogs.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
32
34static inline bool DTTR_Util_SameActor(
35 const DTTR_PCDOGS_T_Actor_State *left,
36 const DTTR_PCDOGS_T_Actor_State *right
37) {
38 return left != NULL && left == right;
39}
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif // DTTR_UTIL_ACTOR_H
void void * ctx
DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void NULL
DTTR_PCDOGS_API const struct dttr_pcdogs_function_accessor_Entity_GetActiveActorFromList *const DTTR_PCDOGS_F_Entity_GetActiveActorFromList
Accessor object for Entity_GetActiveActorFromList.
bool DTTR_ResultOK(DTTR_Result result)
Definition core.c:78
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.
static DTTR_PCDOGS_T_Actor_State * DTTR_Util_GetActiveActor(const DTTR_Core_Context *ctx)
Return the current active actor, or NULL when unavailable or inactive.