Implement and link ac_dummy (#217)

This commit is contained in:
Hexalotl
2024-01-10 10:59:35 -08:00
committed by GitHub
parent 50b13bea9d
commit 58654394e1
3 changed files with 45 additions and 0 deletions
+3
View File
@@ -618,6 +618,9 @@ ac_dump.c:
.text: [0x805AE704, 0x805AECE8]
.rodata: [0x8064A7E8,0x8064A808]
.data: [0x806C5018, 0x806C5120]
ac_dummy.c:
.text: [0x8050F838, 0x8050F848]
.data: [0x8069FA40, 0x8069FA68]
ac_kago.c:
.text: [0x805B1A08, 0x805B1D50]
.data: [0x806C5750, 0x806C57A8]
+8
View File
@@ -8,6 +8,14 @@
extern "C" {
#endif
typedef struct actor_dummy_s DUMMY_ACTOR;
typedef void (*DUMMY_PROC)(DUMMY_ACTOR*, GAME_PLAY*);
struct actor_dummy_s{
ACTOR actor_class;
};
extern ACTOR_PROFILE Dummy_Profile;
#ifdef __cplusplus
+34
View File
@@ -0,0 +1,34 @@
#include "ac_dummy.h"
#include "m_name_table.h"
static void Dummy_Actor_ct(ACTOR* actor, GAME* game);
static void Dummy_Actor_dt(ACTOR* actor, GAME* game);
static void Dummy_Actor_draw(ACTOR* actor, GAME* game);
static void Dummy_Actor_move(ACTOR* actor, GAME* game);
ACTOR_PROFILE Dummy_Profile = {
mAc_PROFILE_DUMMY,
ACTOR_PART_CONTROL,
ACTOR_STATE_NO_DRAW_WHILE_CULLED | ACTOR_STATE_NO_MOVE_WHILE_CULLED,
EMPTY_NO,
ACTOR_OBJ_BANK_KEEP,
sizeof(DUMMY_ACTOR),
Dummy_Actor_ct,
Dummy_Actor_dt,
Dummy_Actor_move,
Dummy_Actor_draw,
NULL
};
static void Dummy_Actor_ct(ACTOR* actor, GAME* game){
}
static void Dummy_Actor_dt(ACTOR* actor, GAME* game){
}
static void Dummy_Actor_draw(ACTOR* actor, GAME* game){
}
static void Dummy_Actor_move(ACTOR* actor, GAME* game){
}