Implement & link ac_shop_goods

This commit is contained in:
Cuyler36
2024-09-02 18:13:21 -04:00
parent 2d8b09873e
commit 631a443f8f
6 changed files with 1540 additions and 0 deletions
+2
View File
@@ -297,6 +297,8 @@ extern int aMR_DrawDolphinMode(u16 ftr_name);
extern Gfx* aMR_IconNo2Gfx1(int icon_no);
extern Gfx* aMR_IconNo2Gfx2(int icon_no);
extern int aMR_RadioBgmNow(void);
extern void aMR_ThrowItem_FurnitureLock(void);
extern void aMR_ThrowItem_FurnitureUnlock(void);
#ifdef __cplusplus
}
+33
View File
@@ -9,6 +9,39 @@
extern "C" {
#endif
#define aSG_SINGLE_DRAW_NUM 9
typedef struct ac_shop_goods_s SHOP_GOODS_ACTOR;
typedef struct ac_shop_good_single_draw_s {
mActor_name_t item;
s16 layer;
xyz_t target_pos;
xyz_t current_pos;
xyz_t start_pos;
f32 scale;
u16 counter;
s_xyz angle;
f32 velocity_y;
f32 _38;
f32 acceleration_y;
s16 _40;
u16 flags;
int delay_timer;
} aSG_single_draw_c;
struct ac_shop_goods_s {
ACTOR actor_class;
int picture_count;
int bx;
int bz;
f32 bx_pos;
f32 bz_pos;
s16 mode;
s16 _18A;
aSG_single_draw_c single_draw[aSG_SINGLE_DRAW_NUM];
};
extern ACTOR_PROFILE Shop_Goods_Profile;
#ifdef __cplusplus
+1
View File
@@ -2278,6 +2278,7 @@ extern int mNT_check_unknown(mActor_name_t item_no);
#define ITM_DIARY_END (ITM_DIARY_START + 16)
#define ITM_TICKET_START 0x2C00
#define ITM_TICKET_END (ITM_TICKET_START + 95)
#define ITM_INSECT_START 0x2D00
#define ITM_INSECT00 (ITM_INSECT_START + 0)