mirror of
https://github.com/zeldaret/ph
synced 2026-05-23 06:54:18 -04:00
Add LinkDamage class definition
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
struct ActorRef {
|
||||
s32 id;
|
||||
s32 index;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "Debug/DebugHierarchyBase.hpp"
|
||||
|
||||
class DebugHierarchy : public DebugHierarchyBase {
|
||||
/* 00 (base) */
|
||||
/* 08 */
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
class DebugHierarchyBase : public SysObject {
|
||||
/* 00 (vtable) */
|
||||
/* 04 */ void *mNodes;
|
||||
/* 08 */
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "Player/LinkStateHandler.hpp"
|
||||
#include "Render/ModelRender.hpp"
|
||||
|
||||
class LinkDamage : public LinkStateHandler {
|
||||
/* 00 (base) */
|
||||
/* 0c */ void *mUnk_0c;
|
||||
/* 10 */ unk32 mUnk_10;
|
||||
/* 14 */ unk32 mUnk_14;
|
||||
/* 18 */ unk32 mUnk_18;
|
||||
/* 1c */ unk32 mUnk_1c;
|
||||
/* 20 */ unk8 mUnk_20[2];
|
||||
/* 22 */ unk16 mUnk_22;
|
||||
/* 24 */ unk8 mUnk_24[0xe];
|
||||
/* 32 */ unk16 mUnk_32;
|
||||
/* 34 */ unk32 mUnk_34[2];
|
||||
/* 3c */ ModelRender mUnk_3c;
|
||||
/* 98 */ void *mUnk_98;
|
||||
/* 9c */ void *mUnk_9c;
|
||||
/* a0 */ unk32 mUnk_a0[3];
|
||||
/* ac */ unk32 mUnk_ac;
|
||||
/* b0 */ unk8 mUnk_b0[4];
|
||||
/* b4 */
|
||||
};
|
||||
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "System/SysNew.hpp"
|
||||
#include "Player/PlayerLink.hpp"
|
||||
|
||||
class LinkStateHandler : public SysObject {
|
||||
/* 0 (vtable) */
|
||||
/* 4 */ unk32 mSubState;
|
||||
/* 8 */ PlayerLink *mLink;
|
||||
/* c */
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
#include "lib/files.h"
|
||||
|
||||
struct MotionParams {
|
||||
/* 00 */ FileEntry motionBhio; // motion.bhio
|
||||
/* 10 */ unk8 mUnk_10;
|
||||
/* 11 */
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
#include "lib/math.h"
|
||||
|
||||
#include "Player/PlayerLinkBase.hpp"
|
||||
#include "Player/MotionParams.hpp"
|
||||
|
||||
#include "Debug/DebugHierarchy.hpp"
|
||||
|
||||
class PlayerLink: public PlayerLinkBase {
|
||||
/* 00 (base) */
|
||||
/* 14 */ Vec3p mPos;
|
||||
/* 20 */ Vec3p mVel;
|
||||
/* 2c */ unk8[2][2] mTilePos;
|
||||
/* 30 */ unk32 mAltitude;
|
||||
/* 34 */ unk8 mUnk_34[4];
|
||||
/* 38 */ s32 mUnk_38;
|
||||
/* 3c */ ActorRef mUnkRef_03c;
|
||||
/* 44 */ s32 mUnk_44;
|
||||
/* 48 */ unk16 mUnk_48;
|
||||
/* 4a */ unk16 mUnk_4a;
|
||||
/* 4c */ unk32 mUnk_4c;
|
||||
/* 50 */ unk32 mUnk_50;
|
||||
/* 54 */ s16 mUnk_54;
|
||||
/* 56 */ unk16 mUnk_56;
|
||||
/* 58 */ unk16 mUnk_58;
|
||||
/* 5a */ s16 mUnk_5a;
|
||||
/* 5c */ unk8 mUnk_5c[3];
|
||||
/* 5f */ bool mUnk_5f;
|
||||
/* 60 */ MotionParams *mMotionParams;
|
||||
/* 64 */ DebugHierarchy *mDebugHierarchy_0;
|
||||
/* 68 */ DebugHierarchy *mDebugHierarchy_1;
|
||||
/* 6c */ DebugHierarchy *mDebugHierarchy_2;
|
||||
/* 70 */
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
class PlayerLinkBase : public SysObject {
|
||||
/* 00 (vtable) */
|
||||
/* 04 */ void *mUnk_04;
|
||||
/* 08 */ s16 mUnk_08;
|
||||
/* 0a */ s16 mHealth;
|
||||
/* 0c */ unk8 mUnk_0c[2];
|
||||
/* 0e */ unk16 mUnk_0e;
|
||||
/* 10 */ unk8 mUnk_10;
|
||||
/* 11 */ bool mUnk_11;
|
||||
/* 12 */ bool mUnk_12;
|
||||
/* 13 */
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
class ModelRender : public SysObject {
|
||||
/* 00 (vtable) */
|
||||
/* 04 */ u32 mUnk_04;
|
||||
/* 08 */ void *mLcdcAddr;
|
||||
/* 0c */ s32 mUnk_0c;
|
||||
/* 10 */ unk32 mUnk_10;
|
||||
/* 14 */ s32 mUnk_14;
|
||||
/* 18 */ unk32 mUnk_18;
|
||||
/* 1c */ s32 mUnk_1c;
|
||||
/* 20 */ unk8 mUnk_20[0x38];
|
||||
/* 58 */ void *mUnk_58;
|
||||
/* 5c */
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
struct FileEntry {
|
||||
/* 00 (vtable )*/
|
||||
/* 04 */ void *path;
|
||||
/* 08 */ unk32 mUnk_08;
|
||||
/* 0c */ unk32 mUnk_0c;
|
||||
/* 10 */
|
||||
};
|
||||
|
||||
+2
-4
@@ -1,6 +1,6 @@
|
||||
#ifndef LIB_MATH_H
|
||||
#define LIB_MATH_H
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
// Q20.12 fixed point number
|
||||
@@ -33,5 +33,3 @@ extern "C" u32 Divide(u32 a, u32 b);
|
||||
extern "C" bool Approach(unk32 *src, unk32 dest, unk32 step);
|
||||
extern "C" bool Approach_thunk(unk32 *src, unk32 dest, unk32 step);
|
||||
extern "C" bool func_01ffec34(Vec4p *param1, Vec4p *param2);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
struct TouchStateFlags {
|
||||
u16 touchX;
|
||||
u16 touchY;
|
||||
|
||||
Reference in New Issue
Block a user