mirror of
https://github.com/zeldaret/ph
synced 2026-05-23 15:01:37 -04:00
5b15874c4d
* Comments * Lay out theoretical code * Externalise func_020196bc & func_020196fc * Pull merge * Pull merge * Decomp MapBase::func_ov00_02080edc * Fix MapManager TilePos params * Decomp progress * Fix MapManager param issue * Decomp progress * Update MapManager var pointer type * Fix function defs * Update symbols * Update * Match MapBase_Unk2::func_ov00_02080ad0 (thx 2 dt mow & yanis) * Update * Decomp progress 26% * Decomp progress 28% * Fix struct overlap * Fix unknown members * Uncomment and fix rest of methods (most still non-matching) * Decomp progress * Corrections
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "global.h"
|
|
#include "types.h"
|
|
|
|
#include "nds/math.h"
|
|
|
|
#include "Physics/AABB.hpp"
|
|
#include "System/SysNew.hpp"
|
|
|
|
struct TriggerParams {
|
|
/* 0 */ s8 id;
|
|
/* 1 */ unk8 zMin;
|
|
/* 2 */ unk8 zMax;
|
|
/* 3 */ unk8 xMin;
|
|
/* 4 */ unk8 xMax;
|
|
/* 5 */ bool isAABB_Unk1;
|
|
/* 6 */ s8 mUnk_6;
|
|
/* 7 */ s8 mUnk_7;
|
|
/* 8 */ s8 mUnk_8;
|
|
/* 9 */ bool isAABB_Unk2;
|
|
/* a */ bool isSphere;
|
|
/* b */
|
|
};
|
|
|
|
class UnkStruct_TriggerBase : public SysObject {
|
|
public:
|
|
virtual unk32 vfunc_00(void *);
|
|
};
|
|
|
|
class TriggerBase : public UnkStruct_TriggerBase {
|
|
public:
|
|
/* 00 (vtable) */
|
|
/* 04 */ bool mUnk_04;
|
|
/* 05 */ u8 mId;
|
|
/* 06 */ unk8 mUnk_06[2];
|
|
/* 08 */ u32 mUnk_08;
|
|
/* 0c */ u32 mUnk_0c;
|
|
/* 10 */ u32 mUnk_10;
|
|
/* 14 */
|
|
|
|
/* 00 */ virtual ~TriggerBase();
|
|
/* 08 */ virtual void vfunc_08();
|
|
/* 0c */ virtual bool vfunc_0c(bool param_2);
|
|
/* 10 */ virtual unk32 vfunc_10();
|
|
/* 14 */ virtual bool Overlaps(Vec3p *point);
|
|
/* 18 */ virtual bool GetBoundingBox(AABB *bbox);
|
|
/* 1c */
|
|
|
|
TriggerBase(TriggerParams *params);
|
|
TriggerBase(u8 id, u32 param2, u32 param3, u32 param4);
|
|
};
|