Merge pull request #183 from Cuyler36/ac_npc_curator_struct

Add ac_npc_curator struct
This commit is contained in:
Cuyler36
2023-12-09 05:46:14 -05:00
committed by GitHub
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -100,6 +100,10 @@ typedef struct npc_info_s {
mActor_name_t npc_name;
} NpcActorInfo_c;
/* Used for think, schedule, action, & talk */
typedef void (*aNPC_PROC)(NPC_ACTOR* npc_actorx, GAME_PLAY* play, int schedule_idx);
typedef void (*aNPC_SUB_PROC)(NPC_ACTOR* npc_actorx, GAME_PLAY* play);
struct npc_actor_s {
ACTOR actor_class;
int _174;
+16
View File
@@ -3,11 +3,27 @@
#include "types.h"
#include "m_actor.h"
#include "ac_npc.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct npc_curator_actor_s NPC_CURATOR_ACTOR;
struct npc_curator_actor_s {
NPC_ACTOR npc_class;
int action;
aNPC_SUB_PROC action_proc;
int sleep_wait_timer;
int talk_act_idx;
aNPC_SUB_PROC talk_proc;
aNPC_PROC setupTalkAction_proc;
int msg_no;
int _9B0; // might be unused 'awake' state
mActor_name_t donated_item;
};
extern ACTOR_PROFILE Npc_Curator_Profile;
#ifdef __cplusplus