1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 17:54:15 +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

@ -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;
@ -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