mirror of
https://github.com/zeldaret/st
synced 2026-08-23 23:13:16 -04:00
39288e4605
* feat: Start decompiling ActorUnkCASE's ctor * fix: Fix broken member names * feat: Finish decompiling ActorUnkCASE's ctor (orr mismatch) * feat: Match ActorUnkCASE_174::vfunc_10 * fix: Update flags arithmetic * feat: Match ActorUnkCASE_150 ctor * feat: Match ActorProfileUnkCASE ctor * feat: Update symbols and vfunc of ActorUnkCASE * feat: Match ActorUnkCASE::vfunc_24 * feat: Decompile ActorUnkCASE::vfunc_10, update Actor::vfunc_10 to use Cylinder * fix: Fix broken Actor symbols * feat: Match ActorUnkCASE::vfunc_18 * feat: Match ActorUnkCASE::vfunc_2C * feat: Start decompiling ActorUnkCASE::vfunc_20 * feat: Match ActorUnkCASE's ctor * feat: Almost finish decompiling ActorUnkCASE::vfunc_20 * feat: Decompile func_ov063_0215b054 and func_ov063_0215afa4 * feat: Match func_ov063_0215af60 * feat: Decompile func_ov063_0215afb8 * feat: Match func_ov063_0215b090 * feat: Match func_ov063_0215b2b0 * feat: Match func_ov063_0215b244 * feat: Match func_ov063_0215b1bc * feat: Match ActorUnkCASE_150::vfunc_00 * feat: Match ActorUnkCASE_150::vfunc_04 * feat: Match ActorUnkCASE_150::vfunc_0C * feat: Match func_ov063_0215b814 * feat: Decompile func_ov063_0215b854 * feat: Match func_ov063_0215aefc * feat: Match func_ov063_0215acec * feat: Update jp symbols * feat: Some symbols and improved matching * feat: Match func_ov063_0215b99c * feat: Start decompiling func_ov063_0215b8e8 * feat: Decompile some funcs * feat: Rename symbols, improve matching, add some data * fix: Fix wrong code for JP only * fix: Fix broken symbols * feat: Update symbols and extend .data, match sinit The .data ordering is wrong * feat: Small changes * Apply suggestions from code review Co-authored-by: Yanis <35189056+Yanis002@users.noreply.github.com> * fix: More code review * feat: Add small comment for the goto * feat: Update func_ov063_0215b8e8 and vfunc_0C to use VexFx32 * fix: Missing c/hpp changes for previous commit * feat: Update func_ov063_0215afb8 to use ActorUnkITWP --------- Co-authored-by: Yanis <35189056+Yanis002@users.noreply.github.com>
194 lines
5.7 KiB
C++
194 lines
5.7 KiB
C++
#pragma once
|
|
|
|
#include "Actor/Actor.hpp"
|
|
#include "Actor/ActorProfile.hpp"
|
|
#include "Actor/ActorUnkCASE.hpp"
|
|
#include "Actor/ActorUnkZLSL_ZSRS.hpp"
|
|
#include "Actor/Actor_Derived1.hpp"
|
|
#include "Physics/Cylinder.hpp"
|
|
#include "Render/ModelRender.hpp"
|
|
#include "Unknown/UnkStruct_ov031_Items.hpp"
|
|
#include "global.h"
|
|
#include "nitro/fx.h"
|
|
#include "nitro/types.h"
|
|
#include "nns/g3d/g3d.h"
|
|
#include "types.h"
|
|
|
|
// Try to match vfunc_0C but poor results
|
|
struct UnkStruct_02162ea8_vfunc_0C {
|
|
/* 00 */ union {
|
|
unk32 mUnk_00;
|
|
Vec2bCpp vec;
|
|
};
|
|
/* 04 */ union {
|
|
unk32 mUnk_04;
|
|
struct {
|
|
u8 mUnk_04_0;
|
|
u8 mUnk_04_1;
|
|
u8 mUnk_04_2;
|
|
u8 mUnk_04_3;
|
|
};
|
|
};
|
|
};
|
|
|
|
class UnkStruct_ov063_02162ea8 : public UnkStruct_ov031_Items_00 {
|
|
public:
|
|
/* 00 (base) */
|
|
/* 04 */ STRUCT_PAD(0x4, 0x8);
|
|
/* 08 */ VecFx32 mUnk_08;
|
|
/* 14 */
|
|
|
|
UnkStruct_ov063_02162ea8();
|
|
|
|
/* 00 (base) */ virtual ~UnkStruct_ov063_02162ea8();
|
|
/* 08 */ virtual bool vfunc_08(UnkStruct_ov031_020f3310 *param1) override;
|
|
/* 0C */ virtual bool vfunc_0C(const UnkStruct_ov031_020e54d4 *param1, unk32 param2, unk32 param3) override;
|
|
};
|
|
|
|
class UnkStruct_ov063_02162ee8 : public UnkStruct_ov000_020b3268 {
|
|
public:
|
|
/* 00 (base) */
|
|
/* 60 */ STRUCT_PAD(0x60, 0x6C);
|
|
/* 6C */ unk32 mUnk_6C;
|
|
/* 70 */ unk32 mUnk_70;
|
|
/* 74 */ unk32 mUnk_74;
|
|
/* 78 */
|
|
|
|
UnkStruct_ov063_02162ee8(G3d_Model *pModel);
|
|
};
|
|
|
|
class UnkStruct_ov063_02162f14 : public UnkStruct_ov000_020b31f0 {
|
|
public:
|
|
/* 2C */
|
|
/* 2C */ UnkSystem5 mUnk_2C;
|
|
/* 4C */ unk32 mUnk_4C;
|
|
/* 50 */ STRUCT_PAD(0x50, 0x7C);
|
|
/* 7C */ UnkSystem5 mUnk_7C;
|
|
/* 9C */ unk32 mUnk_9C;
|
|
|
|
UnkStruct_ov063_02162f14(void *param3, unk32 param4) :
|
|
UnkStruct_ov000_020b31f0(&mUnk_2C, &mUnk_7C, param3, param4),
|
|
mUnk_2C(&mUnk_4C, NULL),
|
|
mUnk_7C(&mUnk_9C, NULL) {
|
|
if (param4 != 0) {
|
|
mUnk_7C.mpModel = mUnk_10;
|
|
mUnk_2C.mpModel = mUnk_10;
|
|
}
|
|
}
|
|
|
|
/* 38 */ virtual void vfunc_38(unk32 param1, unk32 param2) override;
|
|
/* 3C */ virtual void vfunc_3C(void) override;
|
|
};
|
|
|
|
class UnkStruct_ov063_02162e88 : public Actor_9C {
|
|
public:
|
|
/* 20 */ void *mUnk_20; // ActorUnkCANS*
|
|
/* 24 */
|
|
|
|
UnkStruct_ov063_02162e88(void *param1);
|
|
|
|
/* 04 */ virtual unk32 vfunc_04(ActorRef param1, unk32 param2, unk32 param3, unk32 *param4) override;
|
|
};
|
|
|
|
class UnkStruct_ActorUnkCANS_224 {
|
|
public:
|
|
/* 00 (base) */
|
|
/* 04 */
|
|
|
|
UnkStruct_ActorUnkCANS_224(); // func_ov000_02099820
|
|
};
|
|
|
|
class ActorUnkCANS : public Actor_Derived2 {
|
|
public:
|
|
/* 000 (base) */
|
|
/* 0AE */ STRUCT_PAD(0xAE, 0xB0);
|
|
/* 0B0 */ UnkStruct_ov063_02162ee8 mUnk_0B0;
|
|
/* 128 */ UnkStruct_ov063_02162f14 mUnk_128;
|
|
/* 1C8 */ STRUCT_PAD(0x1C8, 0x1F4);
|
|
/* 1F4 */ Actor_Derived1_94 mUnk_1F4;
|
|
/* 200 */ UnkStruct_ov063_02162e88 mUnk_200;
|
|
/* 224 */ UnkStruct_ActorUnkCANS_224 mUnk_224;
|
|
/* 226 */ STRUCT_PAD(0x226, 0x22C);
|
|
/* 22C */ unk16 mUnk_22C;
|
|
/* 22E */ unk16 mUnk_22E;
|
|
/* 230 */ STRUCT_PAD(0x230, 0x234);
|
|
/* 234 */ volatile u16 mUnk_234;
|
|
/* 236 */ u16 mUnk_236;
|
|
/* 238 */ volatile u16 mUnk_238;
|
|
/* 23A */ u16 mUnk_23A;
|
|
/* 23C */ UnkStruct_ov063_02162ea8 mUnk_23C;
|
|
/* 250 */ VecFx32 mUnk_250;
|
|
/* 25C */ unk32 mUnk_25C;
|
|
/* 260 */ unk32 mUnk_260;
|
|
/* 264 */ unk32 mUnk_264;
|
|
/* 268 */ ActorUnkCASE *mUnk_268;
|
|
/* 26C */ fx16 mUnk_26C; // Some kind of angle, probably
|
|
/* 26E */ STRUCT_PAD(0x26E, 0x270);
|
|
/* 270 */ unk32 mUnk_270;
|
|
/* 274 */ u16 mUnk_274;
|
|
/* 276 */ s8 mUnk_276;
|
|
/* 277 */ s8 mUnk_277;
|
|
/* 278 */
|
|
|
|
ActorUnkCANS();
|
|
|
|
/* 10 */ virtual void vfunc_10(Cylinder *param1);
|
|
/* 18 */ virtual unk32 vfunc_18(void);
|
|
/* 1C */ virtual void vfunc_1C(void);
|
|
/* 20 */ virtual void vfunc_20(void);
|
|
/* 24 */ virtual void vfunc_24(void);
|
|
/* 2C */ virtual void vfunc_2C(unk32 param1);
|
|
/* 4C */ virtual ~ActorUnkCANS() override;
|
|
|
|
unk32 func_ov063_02157fa4(ActorRef param1, unk32 param2, unk32 param3, unk32 *param4);
|
|
void func_ov063_02158424(void);
|
|
void func_ov063_02158448(unk32 param1);
|
|
void func_ov063_02158490(void);
|
|
void func_ov063_02158b0c(void);
|
|
void func_ov063_02158b34(void);
|
|
void func_ov063_02158b98(void);
|
|
void func_ov063_02158d40(void);
|
|
void func_ov063_02158db0(void);
|
|
void func_ov063_021590c8(void);
|
|
void func_ov063_02159100(void);
|
|
void func_ov063_021591f4(void);
|
|
void func_ov063_02159258(void);
|
|
void func_ov063_02159408(void);
|
|
void func_ov063_02159494(void);
|
|
void func_ov063_021595a4(void);
|
|
void func_ov063_02159618(void);
|
|
void func_ov063_02159714(void);
|
|
void func_ov063_02159784(void);
|
|
void func_ov063_021598fc(void);
|
|
void func_ov063_021599e4(void);
|
|
void func_ov063_02159ca8(void);
|
|
void func_ov063_02159d68(void);
|
|
void func_ov063_02159dfc(void);
|
|
void func_ov063_02159e1c(void);
|
|
void func_ov063_02159e20(void);
|
|
void func_ov063_02159ec0(void);
|
|
unk32 func_ov063_02159f3c(unk32 param1);
|
|
unk32 func_ov063_0215a0f0(void);
|
|
unk32 func_ov063_0215a2c0(void);
|
|
void func_ov063_0215a428(void);
|
|
unk32 func_ov063_0215a474(void);
|
|
unk32 func_ov063_0215a514(void);
|
|
unk32 func_ov063_0215a56c(unk32 param1);
|
|
void func_ov063_0215a5a0(VecFx32 *param1);
|
|
unk32 func_ov063_0215a5bc(void);
|
|
unk32 func_ov063_0215a5d8(void);
|
|
static void func_ov063_0215a678(ActorUnkCANS *param1, UnkStruct_func_ov063_0215a678 *param2);
|
|
};
|
|
|
|
class ActorProfileUnkCANS : public ActorProfile_Derived1 {
|
|
public:
|
|
/* 00 (base) */
|
|
|
|
ActorProfileUnkCANS();
|
|
~ActorProfileUnkCANS();
|
|
|
|
/* 0C */ virtual Actor *Create();
|
|
|
|
static ActorProfileUnkCANS *GetProfile();
|
|
};
|