From 458be4d8cb1dbbe06d748c4e759131e02e73b467 Mon Sep 17 00:00:00 2001 From: Pheenoh Date: Sat, 2 Jan 2021 17:47:43 -0500 Subject: more d_save funcs OK, initial map out of dcomifg_play_c and it's classes --- include/SComponent/c_angle/c_angle.h | 12 +++++++++++ include/SComponent/c_cc_d/c_cc_d.h | 42 ++++++++++++++++++++++++++++++++++++ include/SComponent/c_cc_s/c_cc_s.h | 14 ++++++++++++ include/SComponent/c_m3d/c_m3d.h | 39 +++++++++++++++++++++++++++++++++ include/SComponent/c_xyz/c_xyz.h | 10 +++++++++ 5 files changed, 117 insertions(+) create mode 100644 include/SComponent/c_angle/c_angle.h create mode 100644 include/SComponent/c_cc_d/c_cc_d.h create mode 100644 include/SComponent/c_cc_s/c_cc_s.h create mode 100644 include/SComponent/c_m3d/c_m3d.h create mode 100644 include/SComponent/c_xyz/c_xyz.h (limited to 'include/SComponent') diff --git a/include/SComponent/c_angle/c_angle.h b/include/SComponent/c_angle/c_angle.h new file mode 100644 index 0000000000..03ae0e541a --- /dev/null +++ b/include/SComponent/c_angle/c_angle.h @@ -0,0 +1,12 @@ +#ifndef __C_ANGLE_H_ +#define __C_ANGLE_H_ + +#include "global.h" + +class cSAngle { +public: +private: + s16 value; +}; + +#endif \ No newline at end of file diff --git a/include/SComponent/c_cc_d/c_cc_d.h b/include/SComponent/c_cc_d/c_cc_d.h new file mode 100644 index 0000000000..593c9e2c02 --- /dev/null +++ b/include/SComponent/c_cc_d/c_cc_d.h @@ -0,0 +1,42 @@ +#ifndef __C_CC_D_H_ +#define __C_CC_D_H_ + +#include "SComponent/c_m3d/c_m3d.h" +#include "global.h" + +class cCcD_ShapeAttr { +public: +private: + cM3dGAab cm3dgaab; + void* vtable; +}; + +class cCcD_CpsAttr { +public: +private: + cCcD_ShapeAttr cccd_shapeattr; + cM3dGCps cm3dgcps; +}; + +class cCcD_CylAttr { +public: +private: + cCcD_ShapeAttr cccd_shapeattr; + cM3dGCyl cm3dgcyl; +}; + +class cCcD_DivideInfo { +public: +private: + u8 field_0x0[12]; + void* vtable; +}; + +class cCcD_DivideArea { +public: +private: + cM3dGAab cM3dGAab; + void* vtable; +}; + +#endif \ No newline at end of file diff --git a/include/SComponent/c_cc_s/c_cc_s.h b/include/SComponent/c_cc_s/c_cc_s.h new file mode 100644 index 0000000000..06ce04692a --- /dev/null +++ b/include/SComponent/c_cc_s/c_cc_s.h @@ -0,0 +1,14 @@ +#ifndef __C_CC_S_H_ +#define __C_CC_S_H_ + +#include "global.h" +#include "SComponent/c_cc_d/c_cc_d.h" + +class cCcS { +public: +private: + u8 field_0x0[10260]; + cCcD_DivideArea cccd_dividearea; +}; + +#endif \ No newline at end of file diff --git a/include/SComponent/c_m3d/c_m3d.h b/include/SComponent/c_m3d/c_m3d.h new file mode 100644 index 0000000000..c448bb5e43 --- /dev/null +++ b/include/SComponent/c_m3d/c_m3d.h @@ -0,0 +1,39 @@ +#ifndef __C_M3D_H_ +#define __C_M3D_H_ + +#include "SComponent/c_xyz/c_xyz.h" +#include "global.h" + +class cM3dGLin_members { +public: +private: + cXyz start; + cXyz end; +}; + +class cM3dGCps { +public: +private: + cM3dGLin_members base; + void* vtable; + float field_0x1c; +}; + +class cM3dGCyl { /* Cylinder class */ +public: +private: + cXyz center; + float radius; + float height; + void* vtable; +}; + +class cM3dGAab { /* Axis-aligned bounding box */ +public: +private: + cXyz min; + cXyz max; + void* vtable; +}; + +#endif \ No newline at end of file diff --git a/include/SComponent/c_xyz/c_xyz.h b/include/SComponent/c_xyz/c_xyz.h new file mode 100644 index 0000000000..c70f940b4e --- /dev/null +++ b/include/SComponent/c_xyz/c_xyz.h @@ -0,0 +1,10 @@ +#ifndef __C_XYZ_H_ +#define __C_XYZ_H_ +#include "global.h" + +class cXyz { +public: + float x, y, z; +}; + +#endif \ No newline at end of file -- cgit v1.2.3