mirror of
https://github.com/zeldaret/tp
synced 2026-09-01 17:49:58 -04:00
Merge branch 'master' of https://github.com/zeldaret/tp
This commit is contained in:
@@ -2,8 +2,11 @@
|
||||
#define D_SAVE_H_
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#define MAX_BOTTLES 4
|
||||
#define MAX_ITEM_SLOTS 24
|
||||
|
||||
static const int MAX_ITEM_SLOTS = 24;
|
||||
static const int ITEM_XY_MAX_DUMMY = 8;
|
||||
static const int LIGHT_DROP_STAGE = 4;
|
||||
static const int LETTER_INFO_BIT = 64;
|
||||
|
||||
enum Wallets {
|
||||
WALLET,
|
||||
@@ -154,7 +157,7 @@ class dSv_player_status_b_c {
|
||||
u8 dark_clear_level_flag;
|
||||
u8 unk10;
|
||||
u8 unk11;
|
||||
float unk12;
|
||||
float time_of_day;
|
||||
u16 unk16;
|
||||
u8 unk18[3];
|
||||
u8 padding61[3];
|
||||
@@ -252,6 +255,9 @@ class dSv_player_item_c {
|
||||
void setRodTypeLevelUp(void);
|
||||
void setBaitItem(u8);
|
||||
|
||||
static const int BOMB_BAG_MAX = 4;
|
||||
static const int BOTTLE_MAX = 4;
|
||||
|
||||
private:
|
||||
u8 items[24];
|
||||
u8 item_slots[24];
|
||||
@@ -293,7 +299,7 @@ class dSv_player_item_max_c {
|
||||
u8 getBombNum(u8) const;
|
||||
|
||||
private:
|
||||
u8 unk0[8];
|
||||
u8 item_capacities[8];
|
||||
};
|
||||
|
||||
class dSv_player_collect_c {
|
||||
@@ -334,7 +340,7 @@ class dSv_light_drop_c {
|
||||
bool isLightDropGetFlag(u8) const;
|
||||
|
||||
private:
|
||||
u8 unk0[4];
|
||||
u8 light_drop_counts[4];
|
||||
u8 light_drop_get_flag;
|
||||
u8 unk5[3];
|
||||
};
|
||||
@@ -527,7 +533,7 @@ class dSv_danBit_c {
|
||||
bool isItem(int) const;
|
||||
|
||||
private:
|
||||
s8 unk0;
|
||||
s8 mStageNum;
|
||||
u8 unk1;
|
||||
u8 unk2[2];
|
||||
u32 switch_bitfield[2];
|
||||
@@ -562,12 +568,14 @@ class dSv_zoneBit_c {
|
||||
};
|
||||
|
||||
class dSv_zoneActor_c {
|
||||
public:
|
||||
public:
|
||||
void init(void);
|
||||
void on(int);
|
||||
void off(int);
|
||||
bool is(int) const;
|
||||
|
||||
static const int ACTOR_MAX = 0xFFFF;
|
||||
|
||||
private:
|
||||
u32 actor_bitfield[4];
|
||||
};
|
||||
@@ -622,10 +630,10 @@ class dSv_save_c {
|
||||
public:
|
||||
void init(void);
|
||||
dSv_memory2_c* getSave2(int);
|
||||
inline dSv_player_c& getPlayer() {
|
||||
return player;
|
||||
}
|
||||
inline dSv_player_c& getPlayer() {return player; }
|
||||
|
||||
static const int STAGE_MAX = 4;
|
||||
|
||||
private:
|
||||
dSv_player_c player;
|
||||
u8 unk492[4];
|
||||
|
||||
Reference in New Issue
Block a user