mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-04 09:28:55 -04:00
Editor tooling wip
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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--;
|
||||
|
||||
@@ -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() { }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user