Implement & link ac_turi

This commit is contained in:
Cuyler36
2024-11-03 01:01:55 -05:00
parent 28c32e2fb8
commit 893b46479e
11 changed files with 437 additions and 4 deletions
+6 -1
View File
@@ -3,11 +3,17 @@
#include "types.h"
#include "m_actor.h"
#include "m_personal_id.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct fish_event_data_s {
int size;
PersonalID_c pID;
} aEANG_event_data_c;
extern ACTOR_PROFILE Ev_Angler_Profile;
#ifdef __cplusplus
@@ -15,4 +21,3 @@ extern ACTOR_PROFILE Ev_Angler_Profile;
#endif
#endif
+7 -1
View File
@@ -3,11 +3,18 @@
#include "types.h"
#include "m_actor.h"
#include "ac_structure.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct turi_actor_s TURI_ACTOR;
struct turi_actor_s {
STRUCTURE_ACTOR structure_class;
};
extern ACTOR_PROFILE Turi_Profile;
#ifdef __cplusplus
@@ -15,4 +22,3 @@ extern ACTOR_PROFILE Turi_Profile;
#endif
#endif
+32
View File
@@ -0,0 +1,32 @@
#ifndef AC_TURI_CLIP_H
#define AC_TURI_CLIP_H
#include "types.h"
#include "ac_ev_angler.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef int (*aTRC_GET_MSGNO_PROC)(mActor_name_t);
typedef void (*aTRC_RANDOM_TOPSIZE_PROC)(void);
typedef void (*aTRC_SET_TOPNAME_PROC)(void);
typedef int (*aTRC_FISH_RNDSIZE_PROC)(int);
typedef struct turi_clip_s {
aTRC_GET_MSGNO_PROC get_msgno_proc;
aTRC_RANDOM_TOPSIZE_PROC random_topsize_proc;
aTRC_SET_TOPNAME_PROC set_topname_proc;
aTRC_FISH_RNDSIZE_PROC fish_rndsize_proc;
} aTRC_clip_c;
extern int aTRC_clip_get_msgno(mActor_name_t item);
extern void aTRC_clip_random_topsize(void);
extern void aTRC_clip_set_topname(void);
extern int aTRC_clip_fish_rndsize(int size_rank);
#ifdef __cplusplus
}
#endif
#endif
+2 -1
View File
@@ -31,6 +31,7 @@
#include "ac_boxTrick01.h"
#include "ac_broker_design.h"
#include "ac_garagara.h"
#include "ac_turi_clip.h"
#ifdef __cplusplus
extern "C" {
@@ -90,7 +91,7 @@ typedef struct clip_s {
/* 0x0D8 */ void* _0D8;
/* 0x0DC */ aAL_Clip_c* animal_logo_clip;
/* 0x0E0 */ void* _0E0;
/* 0x0E4 */ void* _0E4;
/* 0x0E4 */ aTRC_clip_c* turi_clip;
/* 0x0E8 */ SIGN_ACTOR* sign_control_actor;
/* 0x0EC */ aAPC_Clip_c* aprilfool_control_clip;
/* 0x0F0 */ aEvMgr_Clip_c* event_manager_clip;
+1
View File
@@ -3037,6 +3037,7 @@ extern int mNT_check_unknown(mActor_name_t item_no);
#define DUMMY_TUKIMI 0xF10A
#define DUMMY_MIKUJI 0xF10D
#define DUMMY_TAMA 0xF110
#define DUMMY_TURI 0xF111
#define DUMMY_KOINOBORI 0xF114
#define DUMMY_WINDMILL 0xF116
#define DUMMY_LOTUS 0xF11B
+1
View File
@@ -10,6 +10,7 @@ extern "C" {
#endif
#define mString_MAX_STR 0x7FF
#define mString_DEFAULT_STR_SIZE 16
extern void mString_aram_init();
extern void mString_Load_StringFromRom(u8* dst, int dst_len, int str_no);