Editor tooling wip

This commit is contained in:
MegaMech
2025-03-18 17:38:00 -06:00
parent 3b343e3676
commit 2e1e2a1a4b
63 changed files with 746 additions and 139 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const char* sBoardwalkTexList[] = { gTextureBat1, gTextureBat2, gTextureBat3, gT
size_t OBat::_count = 0;
OBat::OBat(const FVector& pos, const FRotation& rot) {
OBat::OBat(const FVector& pos, const IRotator& rot) {
Name = "Bat";
find_unused_obj_index(&_objectIndex);
+2 -2
View File
@@ -21,14 +21,14 @@ extern "C" {
/**
* OBat
*
* FRotation does not appear to do anything.
* IRotator does not appear to do anything.
* Could not find where origin_pos was at.
* So pos does not work either
*
*/
class OBat : public OObject {
public:
explicit OBat(const FVector& pos, const FRotation& rot);
explicit OBat(const FVector& pos, const IRotator& rot);
~OBat() {
_count--;
+1 -1
View File
@@ -18,6 +18,6 @@ void OObject::Tick60fps() {}
void OObject::Draw(s32 cameraId) { }
void OObject::Expire() { }
void OObject::Destroy() {
PendingDestroy = true;
bPendingDestroy = true;
}
void OObject::Reset() { }
+1 -1
View File
@@ -12,7 +12,7 @@ public:
uint8_t uuid[16];
Object o;
const char* Name = "";
bool PendingDestroy = false;
bool bPendingDestroy = false;
s32 _objectIndex = -1;
virtual ~OObject() = default;
+1 -1
View File
@@ -20,7 +20,7 @@ extern "C" {
#define DEGREES_FLOAT_TO_SHORT(Degrees) ((s16)((Degrees) * (0x8000 / 180.0f)))
OTrashBin::OTrashBin(const FVector& pos, const FRotation& rotation, f32 scale, OTrashBin::Behaviour bhv) {
OTrashBin::OTrashBin(const FVector& pos, const IRotator& rotation, f32 scale, OTrashBin::Behaviour bhv) {
Name = "Trashbin";
_pos = pos;
_rot = rotation;
+2 -2
View File
@@ -24,7 +24,7 @@ public:
STATIC, // The lid stays shut
MUNCHING // The lid opens/closes in a scary munching manner
};
explicit OTrashBin(const FVector& pos, const FRotation& rotation, f32 scale, OTrashBin::Behaviour bhv);
explicit OTrashBin(const FVector& pos, const IRotator& rotation, f32 scale, OTrashBin::Behaviour bhv);
virtual void Tick() override;
virtual void Draw(s32 cameraId) override;
@@ -38,7 +38,7 @@ private:
Behaviour _bhv;
FVector _pos;
FRotation _rot;
IRotator _rot;
float _scale;
size_t _idx;
bool _drawBin = false;