1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 09:45:02 +00:00

Fix offset and size comments in collision_check structs (#115)

This commit is contained in:
Roman971 2020-05-04 13:04:32 +02:00 committed by GitHub
parent e4846409f9
commit 10d45ed7ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ typedef struct {
/* 0x13 */ u8 maskB; // Bitwise-and compared to maskA /* 0x13 */ u8 maskB; // Bitwise-and compared to maskA
/* 0x14 */ u8 type; /* 0x14 */ u8 type;
/* 0x15 */ u8 shape; // ColliderShape /* 0x15 */ u8 shape; // ColliderShape
} Collider; // size = 0x18 } Collider; // size = 0x18
typedef struct { typedef struct {
/* 0x00 */ u8 type; /* 0x00 */ u8 type;
@ -54,7 +54,7 @@ typedef struct {
/* 0x03 */ u8 maskA; // Bitwise-And with maskB /* 0x03 */ u8 maskA; // Bitwise-And with maskB
/* 0x04 */ u8 maskB; // Bitwise-And with maskA /* 0x04 */ u8 maskB; // Bitwise-And with maskA
/* 0x05 */ u8 shape; // ColliderShape /* 0x05 */ u8 shape; // ColliderShape
} ColliderInit; // size = 0x06 } ColliderInit; // size = 0x06
typedef struct { typedef struct {
/* 0x00 */ u8 type; /* 0x00 */ u8 type;
@ -62,7 +62,7 @@ typedef struct {
/* 0x02 */ u8 acFlags; /* 0x02 */ u8 acFlags;
/* 0x03 */ u8 maskA; // Bitwise-And with maskB /* 0x03 */ u8 maskA; // Bitwise-And with maskB
/* 0x04 */ u8 shape; // Collider Type /* 0x04 */ u8 shape; // Collider Type
} ColliderInit_Set3; // size = 0x06 } ColliderInit_Set3; // size = 0x05
typedef struct { typedef struct {
/* 0x00 */ struct Actor* actor; /* 0x00 */ struct Actor* actor;
@ -70,13 +70,13 @@ typedef struct {
/* 0x05 */ u8 acFlags; // Compared to atFlags /* 0x05 */ u8 acFlags; // Compared to atFlags
/* 0x06 */ u8 maskA; // Bitwise-and compared to maskB /* 0x06 */ u8 maskA; // Bitwise-and compared to maskB
/* 0x07 */ u8 shape; // ColliderShape /* 0x07 */ u8 shape; // ColliderShape
} ColliderInit_Actor; // size = 0x08 } ColliderInit_Actor; // size = 0x08
typedef struct { typedef struct {
/* 0x00 */ s32 flags; // Toucher Attack ID Flags /* 0x00 */ s32 flags; // Toucher Attack ID Flags
/* 0x04 */ u8 effect; /* 0x04 */ u8 effect;
/* 0x05 */ u8 damage; // Damage or Stun Timer /* 0x05 */ u8 damage; // Damage or Stun Timer
} ColliderTouch; // size = 0x08 } ColliderTouch; // size = 0x08
typedef struct { typedef struct {
/* 0x00 */ s32 flags; // Collision Exclusion Mask /* 0x00 */ s32 flags; // Collision Exclusion Mask
@ -102,7 +102,7 @@ typedef struct ColliderBody {
/* 0x1C */ Collider* acHit; // object touching this object's AC collider /* 0x1C */ Collider* acHit; // object touching this object's AC collider
/* 0x20 */ struct ColliderBody* atHitItem; // element that hit the AT collider /* 0x20 */ struct ColliderBody* atHitItem; // element that hit the AT collider
/* 0x24 */ struct ColliderBody* acHitItem; // element that hit the AC collider /* 0x24 */ struct ColliderBody* acHitItem; // element that hit the AC collider
} ColliderBody; // size = 0x28 } ColliderBody; // size = 0x28
typedef struct { typedef struct {
/* 0x00 */ u8 bodyFlags; /* 0x00 */ u8 bodyFlags;
@ -121,9 +121,9 @@ typedef struct {
} ColliderJntSphItemDim; // size = 0x18 } ColliderJntSphItemDim; // size = 0x18
typedef struct { typedef struct {
u8 joint; /* 0x00 */ u8 joint;
Sphere16 modelSphere; /* 0x02 */ Sphere16 modelSphere;
s16 scale; /* 0x0A */ s16 scale;
} ColliderJntSphItemDimInit; // size = 0x0C } ColliderJntSphItemDimInit; // size = 0x0C
typedef struct { typedef struct {
@ -140,25 +140,25 @@ typedef struct {
/* 0x00 */ Collider base; /* 0x00 */ Collider base;
/* 0x18 */ s32 count; /* 0x18 */ s32 count;
/* 0x1C */ ColliderJntSphItem* list; /* 0x1C */ ColliderJntSphItem* list;
} ColliderJntSph; // size 0x20 } ColliderJntSph; // size = 0x20
typedef struct { typedef struct {
/* 0x00 */ ColliderInit base; /* 0x00 */ ColliderInit base;
/* 0x08 */ s32 count; /* 0x08 */ s32 count;
/* 0x0C */ ColliderJntSphItemInit* list; /* 0x0C */ ColliderJntSphItemInit* list;
} ColliderJntSphInit; } ColliderJntSphInit; // size = 0x10
typedef struct { typedef struct {
/* 0x00 */ ColliderInit_Set3 base; /* 0x00 */ ColliderInit_Set3 base;
/* 0x08 */ s32 count; /* 0x08 */ s32 count;
/* 0x0C */ ColliderJntSphItemInit* list; /* 0x0C */ ColliderJntSphItemInit* list;
} ColliderJntSphInit_Set3; } ColliderJntSphInit_Set3; // size = 0x10
typedef struct { typedef struct {
/* 0x00 */ ColliderInit_Actor base; /* 0x00 */ ColliderInit_Actor base;
/* 0x08 */ s32 count; /* 0x08 */ s32 count;
/* 0x0C */ ColliderJntSphItemInit* list; /* 0x0C */ ColliderJntSphItemInit* list;
} ColliderJntSphInit_Actor; } ColliderJntSphInit_Actor; // size = 0x10
typedef struct { typedef struct {
/* 0x00 */ Collider base; /* 0x00 */ Collider base;
@ -208,13 +208,13 @@ typedef struct {
/* 0x00 */ ColliderInit base; /* 0x00 */ ColliderInit base;
/* 0x08 */ s32 count; /* 0x08 */ s32 count;
/* 0x0C */ ColliderTrisItemInit* list; /* 0x0C */ ColliderTrisItemInit* list;
} ColliderTrisInit; } ColliderTrisInit; // size = 0x10
typedef struct { typedef struct {
/* 0x00 */ ColliderInit_Set3 base; /* 0x00 */ ColliderInit_Set3 base;
/* 0x08 */ s32 count; /* 0x08 */ s32 count;
/* 0x0C */ ColliderTrisItemInit* list; /* 0x0C */ ColliderTrisItemInit* list;
} ColliderTrisInit_Set3; } ColliderTrisInit_Set3; // size = 0x10
typedef struct { typedef struct {
/* 0x00 */ Vec3f quad[4]; /* 0x00 */ Vec3f quad[4];
@ -225,7 +225,7 @@ typedef struct {
typedef struct { typedef struct {
/* 0x00 */ Vec3f quad[4]; /* 0x00 */ Vec3f quad[4];
} ColliderQuadDimInit; } ColliderQuadDimInit; // size = 0x30
typedef struct { typedef struct {
/* 0x00 */ Collider base; /* 0x00 */ Collider base;
@ -235,19 +235,19 @@ typedef struct {
typedef struct { typedef struct {
/* 0x00 */ ColliderInit base; /* 0x00 */ ColliderInit base;
/* 0x18 */ ColliderBodyInit body; /* 0x08 */ ColliderBodyInit body;
/* 0x30 */ ColliderQuadDimInit dim; /* 0x20 */ ColliderQuadDimInit dim;
} ColliderQuadInit; // size 0x60 } ColliderQuadInit; // size = 0x50
typedef struct { typedef struct {
/* 0x00 */ ColliderInit_Set3 base; /* 0x00 */ ColliderInit_Set3 base;
/* 0x18 */ ColliderBodyInit body; /* 0x08 */ ColliderBodyInit body;
/* 0x30 */ ColliderQuadDimInit dim; /* 0x20 */ ColliderQuadDimInit dim;
} ColliderQuadInit_Set3; } ColliderQuadInit_Set3; // size = 0x50
typedef struct { typedef struct {
Linef line; /* 0x00 */ Linef line;
u16 unk_18; /* 0x18 */ u16 unk_18;
} OcLine; } OcLine; // size = 0x1C
#endif #endif