Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d_a_sail 100% #678

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions include/d/actor/d_a_sail.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ class daSail_packet_c : public J3DPacket {
virtual void draw();

public:
/* 0x0010 */ u8 m0010[0x00A4 - 0x0010];
/* 0x0010 */ Mtx m0010;
/* 0x0040 */ Mtx m0040;
/* 0x0070 */ Mtx m0070;
/* 0x00A0 */ dKy_tevstr_c *mA0;
/* 0x00A4 */ cXyz m00A4[0x54 * 2];
/* 0x0884 */ cXyz m0884[0x54];
/* 0x0C74 */ cXyz m0C74[0x54 * 2];
Expand All @@ -42,17 +45,32 @@ class daSail_packet_c : public J3DPacket {
/* 0x1C3A */ u8 m1C3A;
/* 0x1C3B */ u8 m1C3B;
/* 0x1C3C */ J3DModel* m1C3C;
/* 0x1C40 */ u8 m1C40[0x1C44 - 0x1C40];
/* 0x1C40 */ s32 m1C40;
/* 0x1C44 */ f32 m1C44;
/* 0x1C48 */ f32 m1C48;
/* 0x1C4C */ f32 m1C4C;
/* 0x1C50 */ s16 m1C50;
/* 0x1C52 */ s16 m1C52;

inline Mtx *get_m0010() { return &this->m0010; }
inline Mtx *get_m0070() { return &this->m0070; }

inline cXyz* get_pos(s32 idx) {
return this->m00A4 + 0x54 * this->m1C3A + 0x54 * idx;
}
inline cXyz* get_nrm1(s32 idx) {
return this->m0C74 + 0x54 * this->m1C3A + 0x54 * idx;
}
inline cXyz* get_nrm2(s32 idx) {
return this->m1454 + 0x54 * this->m1C3A + 0x54 * idx;
}
LDAsuku marked this conversation as resolved.
Show resolved Hide resolved
};

class sail_class : public fopAc_ac_c {
public:
/* 0x0290 */ request_of_phase_process_class mClothPhase;
/* 0x0298 */ request_of_phase_process_class mKaizokusenPhase;
/* 0x02A0 */ daSail_packet_c mSailPacket;
/* 0x1EEC */ u8 m1EEC[0x1EF4 - 0x1EEC];
LagoLunatic marked this conversation as resolved.
Show resolved Hide resolved
};

class daSail_HIO_c : public JORReflexible {
Expand All @@ -73,7 +91,9 @@ class daSail_HIO_c : public JORReflexible {
/* 0x05 */ u8 m05;
/* 0x06 */ u8 m06;
/* 0x07 */ u8 m07;
/* 0x08 */ u8 m08[0x10 - 0x08];
/* 0x08 */ u8 m08;
/* 0x09 */ u8 m09[0x0C - 0x09];
/* 0x0C */ f32 m0C;
/* 0x10 */ f32 m10;
};

Expand Down
1 change: 1 addition & 0 deletions include/d/d_kankyo.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ void dKy_instant_rainchg();
SND_INFLUENCE * dKy_Sound_get();
void dKy_Sound_set(cXyz i_pos, int param_1, fpc_ProcID i_actorID, int param_3);
void dKy_SordFlush_set(cXyz hitPos, int lightType);
cXyz dKy_FirstlightVec_get(cXyz* param_0);
void dKy_itudemo_se();
void dKy_actor_addcol_set(s16, s16, s16, f32);
void dKy_actor_addcol_amb_set(s16, s16, s16, f32);
Expand Down
Loading