AERMRE 1.5.1
AER modding framework for Hyper Light Drifter.
mod.h
Go to the documentation of this file.
1
36#ifndef AER_MOD_H
37#define AER_MOD_H
38
39#include <stdbool.h>
40#include <stdint.h>
41
42/* ----- PUBLIC TYPES ----- */
43
55typedef struct AERModDef {
68 void (*constructor)(void);
81 void (*destructor)(void);
96 void (*registerSprites)(void);
110 void (*registerObjects)(void);
155 void (*gameStepListener)(void);
178 void (*gamePauseListener)(bool paused);
179#define void __attribute__((deprecated)) void
196 void (*roomChangeListener)(int32_t newRoomIdx, int32_t prevRoomIdx);
197#undef void
211 void (*registerFonts)(void);
240 void (*gameSaveListener)(int32_t curSlotIdx);
270 void (*gameLoadListener)(int32_t curSlotIdx);
296 void (*roomStartListener)(int32_t newRoomIdx, int32_t prevRoomIdx);
322 void (*roomEndListener)(int32_t newRoomIdx, int32_t prevRoomIdx);
323} AERModDef;
324
325#endif /* AER_MOD_H */
Definition of a mod.
Definition: mod.h:55
void(* gameSaveListener)(int32_t curSlotIdx)
Mod's game save pseudo-event listener.
Definition: mod.h:240
void(* gamePauseListener)(bool paused)
Mod's game pause pseudo-event listener.
Definition: mod.h:178
void(* roomChangeListener)(int32_t newRoomIdx, int32_t prevRoomIdx)
This member is a deprecated alias for AERModDef::roomStartListener.
Definition: mod.h:196
void(* roomStartListener)(int32_t newRoomIdx, int32_t prevRoomIdx)
Mod's room-start pseudo-event listener.
Definition: mod.h:296
void(* registerObjectListeners)(void)
Callback function which registers a mod's object event listeners.
Definition: mod.h:135
void(* registerFonts)(void)
Callback function which registers a mod's fonts.
Definition: mod.h:211
void(* registerSprites)(void)
Callback function which registers a mod's sprites.
Definition: mod.h:96
void(* roomEndListener)(int32_t newRoomIdx, int32_t prevRoomIdx)
Mod's room-end pseudo-event listener.
Definition: mod.h:322
void(* gameStepListener)(void)
Mod's game step pseudo-event listener.
Definition: mod.h:155
void(* constructor)(void)
Callback function which constructs a mod.
Definition: mod.h:68
void(* registerObjects)(void)
Callback function which registers a mod's objects.
Definition: mod.h:110
void(* gameLoadListener)(int32_t curSlotIdx)
Mod's game load pseudo-event listener.
Definition: mod.h:270
void(* destructor)(void)
Callback function which destructs a mod.
Definition: mod.h:81