some c_m3d (#97)

* decompiled some bgs_chk funcs

* c_m3d_g

* c_math progress

* remove duplicate SComponent headers

* move some variables and decompile a function

* some inlined from debug

* cM3d_2PlaneLinePosNearPos

* fix fabsf and decompile cM3d_CrawVec

* format

* cleanup

* more cleanup

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
lepelog
2021-01-26 23:48:47 +01:00
committed by GitHub
parent b8d0da505d
commit 1e105b87f1
135 changed files with 1022 additions and 2738 deletions
+10 -22
View File
@@ -3,36 +3,24 @@
#include "SComponent/c_m3d_g_cps.h"
// __ct__8cM3dGCpsFv
// cM3dGCps::cM3dGCps(void)
asm cM3dGCps::cM3dGCps(void) {
nofralloc
#include "SComponent/c_m3d_g_cps/asm/func_8026EF88.s"
}
cM3dGCps::cM3dGCps(void) {}
// __dt__8cM3dGCpsFv
// cM3dGCps::~cM3dGCps(void)
asm cM3dGCps::~cM3dGCps(void) {
nofralloc
#include "SComponent/c_m3d_g_cps/asm/func_8026EFA4.s"
}
cM3dGCps::~cM3dGCps(void) {}
// Set__8cM3dGCpsFRC4cXyzRC4cXyzf
// cM3dGCps::Set(const cXyz&, const cXyz&, float)
asm void cM3dGCps::Set(const cXyz&, const cXyz&, float) {
nofralloc
#include "SComponent/c_m3d_g_cps/asm/func_8026F000.s"
void cM3dGCps::Set(const cXyz& pStart, const cXyz& pEnd, f32 pUnkF) {
this->SetStartEnd(pStart, pEnd);
unk_0x1c = pUnkF;
}
// Set__8cM3dGCpsFRC9cM3dGCpsS
// cM3dGCps::Set(const cM3dGCpsS&)
asm void cM3dGCps::Set(const cM3dGCpsS&) {
nofralloc
#include "SComponent/c_m3d_g_cps/asm/func_8026F03C.s"
void cM3dGCps::Set(const cM3dGCpsS& other) {
this->SetStartEnd(other.mStart, other.mEnd);
unk_0x1c = other.unk_0x1c;
}
// SetCps__8cM3dGCpsFRC8cM3dGCps
// cM3dGCps::SetCps(const cM3dGCps&)
asm void cM3dGCps::SetCps(const cM3dGCps&) {
nofralloc
#include "SComponent/c_m3d_g_cps/asm/func_8026F080.s"
void cM3dGCps::SetCps(const cM3dGCps& other) {
this->Set(other.GetStartP(), other.GetEndP(), other.unk_0x1c);
}