mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-08 13:46:21 -04:00
Remove fake consts from d_save
This commit is contained in:
+36
-22
@@ -65,13 +65,13 @@ public:
|
||||
void init();
|
||||
void set(char const*, s8, u8);
|
||||
|
||||
const s8 getRoomNo() const { return mRoomNo; }
|
||||
u8 getPlayerStatus() const { return mPlayerStatus; }
|
||||
s8 getRoomNo() { return mRoomNo; }
|
||||
u8 getPoint() { return mPoint; }
|
||||
char* getName() { return mName; }
|
||||
|
||||
/* 0x00 */ char mName[8];
|
||||
/* 0x08 */ s8 mRoomNo;
|
||||
/* 0x09 */ u8 mPlayerStatus;
|
||||
/* 0x09 */ u8 mPoint;
|
||||
/* 0x0A */ u8 unk_0xa;
|
||||
/* 0x0B */ u8 unk_0xb;
|
||||
}; // Size: 0xC
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
u8 checkBottle(u8);
|
||||
u8 checkEmptyBottle();
|
||||
|
||||
u8 getItem(int i_idx) const { return mItems[i_idx]; }
|
||||
u8 getItem(int i_idx) { return mItems[i_idx]; }
|
||||
void setItem(int i_idx, u8 i_itemNo) { mItems[i_idx] = i_itemNo; }
|
||||
|
||||
/* 0x00 */ u8 mItems[21];
|
||||
@@ -139,9 +139,9 @@ class dSv_player_item_max_c {
|
||||
public:
|
||||
void init();
|
||||
|
||||
u8 getArrowNum() const { return mArrowNum; }
|
||||
u8 getArrowNum() { return mArrowNum; }
|
||||
void setArrowNum(u8 num) { mArrowNum = num; }
|
||||
u8 getBombNum() const { return mBombNum; }
|
||||
u8 getBombNum() { return mBombNum; }
|
||||
void setBombNum(u8 num) { mBombNum = num; }
|
||||
// void setReserved1Num(u8 num) { ? = num; }
|
||||
|
||||
@@ -207,9 +207,11 @@ class dSv_player_bag_item_record_c {
|
||||
public:
|
||||
void init();
|
||||
|
||||
u8 getBeastNum(int i_idx) const { return mBeastNum[i_idx]; }
|
||||
u8 getBaitNum(int i_idx) const { return mBaitNum[i_idx]; }
|
||||
u8 getReserveNum(int i_idx) const { return mReserveNum[i_idx]; }
|
||||
u8 getBeastNum(int i_idx) { return mBeastNum[i_idx]; }
|
||||
void setBeastNum(int i_idx, u8 num) { mBeastNum[i_idx] = num; }
|
||||
u8 getBaitNum(int i_idx) { return mBaitNum[i_idx]; }
|
||||
void setBaitNum(int i_idx, u8 num) { mBaitNum[i_idx] = num; }
|
||||
u8 getReserveNum(int i_idx) { return mReserveNum[i_idx]; }
|
||||
|
||||
/* 0x00 */ u8 mBeastNum[8];
|
||||
/* 0x08 */ u8 mBaitNum[8];
|
||||
@@ -280,7 +282,16 @@ public:
|
||||
void init();
|
||||
|
||||
const char* getPlayerName() const { return mPlayerName; }
|
||||
u8 getClearCount() const { return mClearCount; }
|
||||
void setPlayerName(const char*) {}
|
||||
u8 getClearCount() { return mClearCount; }
|
||||
void clearCountUp() {}
|
||||
void setClearCount(u8) {}
|
||||
void addDeathCount() {}
|
||||
void getPuzzleInfo() {}
|
||||
void setPuzzleInfo(u8) {}
|
||||
void setPuzzleData(int, u8) {}
|
||||
void getRandomSalvage() {}
|
||||
void setRandomSalvage(u8) {}
|
||||
|
||||
/* 0x00 */ u8 field_0x0[0x10];
|
||||
/* 0x10 */ u16 field_0x10;
|
||||
@@ -301,7 +312,14 @@ public:
|
||||
void init();
|
||||
s32 checkVibration();
|
||||
|
||||
u8 getVibration() const { return mVibration; }
|
||||
u8 getVibration() { return mVibration; }
|
||||
void setVibration(u8 vib) { mVibration = vib; }
|
||||
u8 getAttentionType() { return mAttentionType; }
|
||||
void setAttentionType(u8 type) { mAttentionType = type; }
|
||||
void getRuby() {}
|
||||
void setRuby(u8) {}
|
||||
u8 getSound() { return mSoundMode; }
|
||||
void setSound(u8 mode) { mSoundMode = mode; }
|
||||
|
||||
/* 0x0 */ u8 field_0x0;
|
||||
/* 0x1 */ u8 mSoundMode;
|
||||
@@ -504,7 +522,6 @@ public:
|
||||
void init();
|
||||
|
||||
dSv_memBit_c& getBit() { return mMembit; }
|
||||
const dSv_memBit_c& getBit() const { return mMembit; }
|
||||
|
||||
/* 0x0 */ dSv_memBit_c mMembit;
|
||||
}; // Size: 0x24
|
||||
@@ -561,10 +578,8 @@ public:
|
||||
void init(int);
|
||||
|
||||
dSv_zoneBit_c& getZoneBit() { return mZoneBit; }
|
||||
const dSv_zoneBit_c& getBit() const { return mZoneBit; }
|
||||
dSv_zoneActor_c& getActor() { return mZoneActor; }
|
||||
const dSv_zoneActor_c& getActor() const { return mZoneActor; }
|
||||
|
||||
s8 getRoomNo() { return mRoomNo; }
|
||||
void reset() { mRoomNo = -1; }
|
||||
|
||||
/* 0x00 */ s8 mRoomNo;
|
||||
@@ -616,13 +631,12 @@ class dSv_turnRestart_c {
|
||||
public:
|
||||
void set(cXyz const&, s16, s8, u32, cXyz const&, s16, int);
|
||||
|
||||
u32 getParam() const { return mParam; }
|
||||
u32 getParam() { return mParam; }
|
||||
cXyz& getPos() { return mPosition; }
|
||||
s16 getAngleY() const { return mAngleY; }
|
||||
|
||||
cXyz& getShipPos() { return field_0x24; }
|
||||
s16 getShipAngleY() const { return field_0x30; }
|
||||
s16 getAngleY() { return mAngleY; }
|
||||
s8 getRoomNo() { return mRoomNo; }
|
||||
cXyz& getShipPos() { return mShipPos; }
|
||||
s16 getShipAngleY() { return mShipAngleY; }
|
||||
|
||||
/* 0x00 */ cXyz mPosition;
|
||||
/* 0x0C */ u32 mParam;
|
||||
@@ -630,8 +644,8 @@ public:
|
||||
/* 0x12 */ s8 mRoomNo;
|
||||
/* 0x13 */ u8 field_0x13;
|
||||
/* 0x14 */ u8 field_0x14[0x24 - 0x14];
|
||||
/* 0x24 */ cXyz field_0x24;
|
||||
/* 0x30 */ s16 field_0x30;
|
||||
/* 0x24 */ cXyz mShipPos;
|
||||
/* 0x30 */ s16 mShipAngleY;
|
||||
/* 0x34 */ int field_0x34;
|
||||
}; // Size: 0x38
|
||||
|
||||
|
||||
@@ -19,16 +19,8 @@
|
||||
#include "f_op/f_op_scene_mng.h"
|
||||
#include "m_Do/m_Do_Reset.h"
|
||||
#include "m_Do/m_Do_audio.h"
|
||||
|
||||
class J3DModel;
|
||||
class daArrow_c {
|
||||
public:
|
||||
static void setKeepType(u8);
|
||||
};
|
||||
|
||||
class daShip_c : public fopAc_ac_c {
|
||||
public:
|
||||
};
|
||||
#include "d/actor/d_a_arrow.h"
|
||||
#include "d/actor/d_a_ship.h"
|
||||
|
||||
dComIfG_inf_c g_dComIfG_gameInfo;
|
||||
|
||||
@@ -1202,7 +1194,7 @@ void dComIfGs_gameStart() {
|
||||
dComIfGp_offEnableNextStage();
|
||||
|
||||
s8 roomNo = g_dComIfG_gameInfo.save.getPlayer().getPlayerReturnPlace().getRoomNo();
|
||||
s16 point = g_dComIfG_gameInfo.save.getPlayer().getPlayerReturnPlace().getPlayerStatus();
|
||||
s16 point = g_dComIfG_gameInfo.save.getPlayer().getPlayerReturnPlace().getPoint();
|
||||
char* name = g_dComIfG_gameInfo.save.getPlayer().getPlayerReturnPlace().getName();
|
||||
dComIfGp_setNextStage(name, point, roomNo, -1, 0.0f, 0, 1, 0);
|
||||
}
|
||||
|
||||
+5
-5
@@ -138,7 +138,7 @@ void dSv_player_status_b_c::init() {
|
||||
void dSv_player_return_place_c::init() {
|
||||
strcpy(mName, "sea");
|
||||
mRoomNo = 44;
|
||||
mPlayerStatus = 206;
|
||||
mPoint = 206;
|
||||
}
|
||||
|
||||
/* 80058BC8-80058C60 .text set__25dSv_player_return_place_cFPCcScUc */
|
||||
@@ -147,7 +147,7 @@ void dSv_player_return_place_c::set(const char* i_name, s8 i_roomNo, u8 i_status
|
||||
|
||||
strcpy(mName, i_name);
|
||||
mRoomNo = i_roomNo;
|
||||
mPlayerStatus = i_status;
|
||||
mPoint = i_status;
|
||||
}
|
||||
|
||||
/* 80058C60-80058C7C .text init__17dSv_player_item_cFv */
|
||||
@@ -1193,14 +1193,14 @@ void dSv_restart_c::setRestartOption(s8 param_0, cXyz* i_pos, s16 i_angle, s8 i_
|
||||
|
||||
/* 8005D5B4-8005D604 .text set__17dSv_turnRestart_cFRC4cXyzsScUlRC4cXyzsi */
|
||||
void dSv_turnRestart_c::set(const cXyz& i_pos, s16 i_angle, s8 i_roomNo, u32 i_param,
|
||||
const cXyz& param_4, s16 param_5, int param_6) {
|
||||
const cXyz& i_shipPos, s16 i_shipAngle, int param_6) {
|
||||
mPosition = i_pos;
|
||||
mAngleY = i_angle;
|
||||
mRoomNo = i_roomNo;
|
||||
mParam = i_param;
|
||||
field_0x13 = 0;
|
||||
field_0x24 = param_4;
|
||||
field_0x30 = param_5;
|
||||
mShipPos = i_shipPos;
|
||||
mShipAngleY = i_shipAngle;
|
||||
field_0x34 = param_6;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user