mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-11 07:25:50 -04:00
Impl editor object names
This commit is contained in:
@@ -19,7 +19,7 @@ const char* sBoardwalkTexList[] = { gTextureBat1, gTextureBat2, gTextureBat3, gT
|
||||
size_t OBat::_count = 0;
|
||||
|
||||
OBat::OBat(const FVector& pos, const FRotation& rot) {
|
||||
|
||||
Name = "Bat";
|
||||
find_unused_obj_index(&_objectIndex);
|
||||
|
||||
init_texture_object(_objectIndex, (uint8_t*)d_course_banshee_boardwalk_bat_tlut, sBoardwalkTexList, 0x20U,
|
||||
|
||||
@@ -30,6 +30,7 @@ extern s8 gPlayerCount;
|
||||
size_t OBombKart::_count = 0;
|
||||
|
||||
OBombKart::OBombKart(Vec3f pos, TrackWaypoint* waypoint, uint16_t waypointIndex, uint16_t state, f32 unk_3C) {
|
||||
Name = "Bomb Kart";
|
||||
_idx = _count;
|
||||
Vec3f _pos = {0, 0, 0};
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ extern "C" {
|
||||
size_t OBoos::_count = 0;
|
||||
|
||||
OBoos::OBoos(size_t numBoos, const IPathSpan& leftBoundary, const IPathSpan& active, const IPathSpan& rightBoundary) {
|
||||
Name = "Boos";
|
||||
// Max five boos allowed due to limited splines
|
||||
// D_800E5D9C
|
||||
if (numBoos > 10) {
|
||||
|
||||
@@ -17,6 +17,7 @@ extern "C" {
|
||||
size_t OChainChomp::_count = 0;
|
||||
|
||||
OChainChomp::OChainChomp() {
|
||||
Name = "Chain Chomp";
|
||||
_idx = _count;
|
||||
init_object(indexObjectList2[_count], 0);
|
||||
_objectIndex = indexObjectList2[_count];
|
||||
|
||||
@@ -18,6 +18,7 @@ extern Lights1 D_800E45C0[];
|
||||
}
|
||||
|
||||
OCheepCheep::OCheepCheep(const FVector& pos, CheepType type, IPathSpan span) {
|
||||
Name = "Cheep Cheep";
|
||||
_type = type;
|
||||
_spawnPos = pos;
|
||||
_span = span;
|
||||
|
||||
@@ -28,6 +28,7 @@ extern "C" {
|
||||
size_t OCrab::_count = 0;
|
||||
|
||||
OCrab::OCrab(const FVector2D& start, const FVector2D& end) {
|
||||
Name = "Crab";
|
||||
_idx = _count;
|
||||
_start = start;
|
||||
_end = end;
|
||||
|
||||
@@ -16,6 +16,7 @@ extern "C" {
|
||||
size_t OFlagpole::_count = 0;
|
||||
|
||||
OFlagpole::OFlagpole(const FVector& pos, s16 direction) {
|
||||
Name = "Flagpole";
|
||||
_idx = _count;
|
||||
_pos = pos;
|
||||
_direction = direction;
|
||||
|
||||
@@ -15,6 +15,7 @@ extern "C" {
|
||||
size_t OHedgehog::_count = 0;
|
||||
|
||||
OHedgehog::OHedgehog(const FVector& pos, const FVector2D& patrolPoint, s16 unk) {
|
||||
Name = "Hedgehog";
|
||||
_idx = _count;
|
||||
_pos = pos;
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
OHotAirBalloon::OHotAirBalloon(const FVector& pos) {
|
||||
Name = "Hot Air Balloon";
|
||||
_pos = pos;
|
||||
|
||||
D_80165898 = 0;
|
||||
|
||||
@@ -37,6 +37,7 @@ extern s8 gPlayerCount;
|
||||
}
|
||||
|
||||
OLakitu::OLakitu(s32 playerId, LakituType type) {
|
||||
Name = "Lakitu";
|
||||
_playerId = playerId;
|
||||
|
||||
init_object(gIndexLakituList[playerId], (s32)type);
|
||||
|
||||
@@ -25,6 +25,7 @@ extern "C" {
|
||||
size_t OMole::_count = 0;
|
||||
|
||||
OMole::OMole(FVector pos, OMoleGroup* group) {
|
||||
Name = "Mole";
|
||||
_idx = _count;
|
||||
_group = group;
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ class OObject {
|
||||
public:
|
||||
uint8_t uuid[16];
|
||||
Object o;
|
||||
const char* Name = "";
|
||||
bool PendingDestroy = false;
|
||||
s32 _objectIndex = -1;
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ extern s8 gPlayerCount;
|
||||
|
||||
|
||||
OPenguin::OPenguin(Vec3f pos, u16 direction, PenguinType type, Behaviour behaviour) {
|
||||
Name = "Penguin";
|
||||
_type = type;
|
||||
_bhv = behaviour;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ extern Vec3s D_800E634C[];
|
||||
// };
|
||||
|
||||
OPodium::OPodium(const FVector& pos) {
|
||||
|
||||
Name = "Podium";
|
||||
_pos = pos;
|
||||
|
||||
find_unused_obj_index(&_podium1Index);
|
||||
|
||||
@@ -32,6 +32,7 @@ SplineData* D_800E633C[] = { &D_800E6034, &D_800E60F0, &D_800E61B4, &D_800E6280
|
||||
size_t OSeagull::_count = 0;
|
||||
|
||||
OSeagull::OSeagull(FVector pos) {
|
||||
Name = "Seagull";
|
||||
_idx = _count;
|
||||
_pos.x = pos.x;
|
||||
_pos.y = pos.y;
|
||||
|
||||
@@ -17,6 +17,7 @@ static const char* sSnowmanHeadList[] = { d_course_frappe_snowland_snowman_head
|
||||
size_t OSnowman::_count = 0;
|
||||
|
||||
OSnowman::OSnowman(const FVector& pos) {
|
||||
Name = "Snowman";
|
||||
_idx = _count;
|
||||
_pos = pos;
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ s16 D_800E597C[] = { 0x0000, 0x0000, 0x4000, 0x8000, 0x8000, 0xc000 };
|
||||
size_t OThwomp::_count = 0;
|
||||
|
||||
OThwomp::OThwomp(s16 x, s16 z, s16 direction, f32 scale, s16 behaviour, s16 primAlpha, u16 boundingBoxSize) {
|
||||
Name = "Thwomp";
|
||||
_idx = _count;
|
||||
_faceDirection = direction;
|
||||
_boundingBoxSize = boundingBoxSize;
|
||||
|
||||
@@ -21,6 +21,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) {
|
||||
Name = "Trashbin";
|
||||
_pos = pos;
|
||||
_rot = rotation;
|
||||
_scale = scale;
|
||||
|
||||
@@ -21,6 +21,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
OTrophy::OTrophy(const FVector& pos, TrophyType trophy, Behaviour bhv) {
|
||||
Name = "Trophy";
|
||||
_trophy = trophy;
|
||||
_spawnPos = pos;
|
||||
_spawnPos.y += 16.0f; // Adjust the height so the trophy sits on the surface when positioned to 0,0,0
|
||||
|
||||
Reference in New Issue
Block a user