Implement & link ac_ev_designer

This commit is contained in:
Cuyler36
2025-03-21 17:27:57 -04:00
parent bab8f9b8aa
commit 45adf16d83
7 changed files with 677 additions and 2 deletions
+30 -1
View File
@@ -3,11 +3,41 @@
#include "types.h"
#include "m_actor.h"
#include "ac_npc.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ev_designer_save_data_s {
int button_count;
int result;
} aEv_designer_c;
typedef struct ev_designer_actor_s EV_DESIGNER_ACTOR;
typedef void (*aEDSN_TALK_PROC)(EV_DESIGNER_ACTOR* designer, GAME* game);
typedef void (*aEDSN_THINK_PROC)(EV_DESIGNER_ACTOR* designer, GAME_PLAY* play);
struct ev_designer_actor_s {
NPC_ACTOR npc_class;
u8 think_idx;
u8 next_think_idx;
u8 talk_idx;
u8 melody_save;
aEDSN_THINK_PROC think_proc;
aEDSN_TALK_PROC talk_proc;
mActor_name_t present;
u8 wear_flag;
u8 complete_flag;
s16 wash_time;
u8 camera_flag;
u8 pl_talk_lock;
f32 clean_speed;
aEv_designer_c* tmp_save_p;
ACTOR* s_car_p;
};
extern ACTOR_PROFILE Ev_Designer_Profile;
#ifdef __cplusplus
@@ -15,4 +45,3 @@ extern ACTOR_PROFILE Ev_Designer_Profile;
#endif
#endif
+5
View File
@@ -986,6 +986,11 @@ typedef struct {
int anim_idx;
} aNPC_anim_info_c;
#define aNPC_DEMO_GIVE_ITEM(item, mode, present) \
mDemo_Set_OrderValue(mDemo_ORDER_NPC1, 0, (item)); \
mDemo_Set_OrderValue(mDemo_ORDER_NPC1, 1, (mode)); \
mDemo_Set_OrderValue(mDemo_ORDER_NPC1, 2, (present))
extern ACTOR_PROFILE Npc_Profile;
#ifdef __cplusplus