mirror of
https://github.com/zeldaret/st
synced 2026-10-13 15:31:22 -04:00
Decompiling Actor NSSW (#153)
* feat: begin decompiling * feat: decompiling enhanced * fix: symbols sheningans * fix: make jp build * merge: update NSSW * feat: improve overall matching * feat: update * feat: improve matching of ActorItemTornado's vfunc_2C * fix: first attempt to make usa build * style: move external functions * fix: building NSSW * fix: build for jp * feat: improve matching * feat: comply to suggestions
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
|
||||
#include <nitro/math.h>
|
||||
|
||||
// some kind of angle conversion? only used for angle values so far
|
||||
@@ -45,6 +47,26 @@ struct VecFx32Cpp {
|
||||
vec.y = Y;
|
||||
vec.z = Z;
|
||||
}
|
||||
|
||||
void Set(fx32 X, fx32 Y, fx32 Z) {
|
||||
VecFx32_Init(X, Y, Z, &this->vec);
|
||||
}
|
||||
|
||||
void Reset() {
|
||||
VecFx32_Reset(&this->vec);
|
||||
}
|
||||
|
||||
void CopyIn(VecFx32Cpp *vec) {
|
||||
VecFx32_Copy(&this->vec, &vec->vec);
|
||||
}
|
||||
|
||||
void CopyIn(VecFx32 *vec) {
|
||||
VecFx32_Copy(&this->vec, vec);
|
||||
}
|
||||
|
||||
bool TryNormalize() {
|
||||
return VecFx32_TryNormalize(&this->vec);
|
||||
}
|
||||
};
|
||||
|
||||
// C++ wrapper for VecFx16
|
||||
|
||||
Reference in New Issue
Block a user