Mario Kart 64
Loading...
Searching...
No Matches
Editor Namespace Reference

Data Structures

class  ContentBrowserWindow
 
class  GameObject
 
class  Gizmo
 
class  Handles
 
class  LightObject
 
class  ObjectPicker
 
class  PropertiesWindow
 
class  SceneExplorerWindow
 
class  ToolsWindow
 
class  TrackPropertiesWindow
 

Functions

void GenerateCollisionMesh (GameObject *object, Gfx *model, float scale)
 
void DebugCollision (GameObject *obj, FVector pos, IRotator rot, FVector scale, const std::vector< Triangle > &triangles)
 
int gfx_create_framebuffer (uint32_t width, uint32_t height, uint32_t native_width, uint32_t native_height, uint8_t resize)
 
void SaveLevel ()
 
void LoadLevel (std::shared_ptr< Ship::Archive > archive, Course *course, std::string sceneFile)
 
void Load_AddStaticMeshActor (const nlohmann::json &actorJson)
 
void SetSceneFile (std::shared_ptr< Ship::Archive > archive, std::string sceneFile)
 
void LoadMinimap (std::shared_ptr< Ship::Archive > archive, Course *course, std::string filePath)
 

Variables

std::unordered_map< GameObject *, std::vector< Vtx > > gDebugObjVtxCache
 
std::shared_ptr< Ship::Archive > CurrentArchive
 
std::string SceneFile = ""
 
std::unordered_map< std::string, std::function< AActor *(const FVector &)> > ActorList
 
std::unordered_map< std::string, std::function< OObject *(const FVector &)> > ObjectList
 

Function Documentation

◆ DebugCollision()

void Editor::DebugCollision ( GameObject * obj,
FVector pos,
IRotator rot,
FVector scale,
const std::vector< Triangle > & triangles )

◆ GenerateCollisionMesh()

void Editor::GenerateCollisionMesh ( GameObject * object,
Gfx * model,
float scale )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gfx_create_framebuffer()

int Editor::gfx_create_framebuffer ( uint32_t width,
uint32_t height,
uint32_t native_width,
uint32_t native_height,
uint8_t resize )

◆ Load_AddStaticMeshActor()

void Editor::Load_AddStaticMeshActor ( const nlohmann::json & actorJson)
Here is the caller graph for this function:

◆ LoadLevel()

void Editor::LoadLevel ( std::shared_ptr< Ship::Archive > archive,
Course * course,
std::string sceneFile )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadMinimap()

void Editor::LoadMinimap ( std::shared_ptr< Ship::Archive > archive,
Course * course,
std::string filePath )
Here is the caller graph for this function:

◆ SaveLevel()

void Editor::SaveLevel ( )
Here is the caller graph for this function:

◆ SetSceneFile()

void Editor::SetSceneFile ( std::shared_ptr< Ship::Archive > archive,
std::string sceneFile )
Here is the caller graph for this function:

Variable Documentation

◆ ActorList

std::unordered_map<std::string, std::function<AActor*(const FVector&)> > Editor::ActorList
Initial value:
= {
{ "Mario Sign", [](const FVector& pos) { return new AMarioSign(pos); } },
{ "Wario Sign", [](const FVector& pos) { return new AWarioSign(pos); } },
{ "Cloud", [](const FVector& pos) { return new ACloud(pos); } },
{ "Finishline", [](const FVector& pos) { return new AFinishline(pos); } },
{ "Ghostship", [](const FVector& pos) { return new AShip(pos, AShip::Skin::GHOSTSHIP); } },
{ "Ship_1", [](const FVector& pos) { return new AShip(pos, AShip::Skin::SHIP2); } },
{ "Ship_2", [](const FVector& pos) { return new AShip(pos, AShip::Skin::SHIP3); } },
{ "SpaghettiShip", [](const FVector& pos) { return new ASpaghettiShip(pos); } },
{ "Starship", [](const FVector& pos) { return new AStarship(pos); } },
{ "Train", [](const FVector& pos) { return new ATrain(ATrain::TenderStatus::HAS_TENDER, 4, 2.5f, 0); } },
{ "Boat", [](const FVector& pos) { return new ABoat((0.6666666f)/4, 0); } },
{ "Bus", [](const FVector& pos) { return new ABus(2.0f, 2.5f, &gTrackPaths[0][0], 0); } },
{ "Car", [](const FVector& pos) { return new ACar(2.0f, 2.5f, &gTrackPaths[0][0], 0); } },
{ "Truck", [](const FVector& pos) { return new ATruck(2.0f, 2.5f, &gTrackPaths[0][0], 0); } },
{ "Tanker Truck", [](const FVector& pos) { return new ATankerTruck(2.0f, 2.5f, &gTrackPaths[0][0], 0); } },
}
Definition MarioSign.h:11
@ GHOSTSHIP
Definition Ship.h:17
@ SHIP2
Definition Ship.h:18
@ SHIP3
Definition Ship.h:19
@ HAS_TENDER
Definition Train.h:21
Definition WarioSign.h:11
TrackPathPoint * gTrackPaths[4]
Definition code_80005FD0.c:183
Definition CoreMath.h:18

◆ CurrentArchive

std::shared_ptr< Ship::Archive > Editor::CurrentArchive

◆ gDebugObjVtxCache

std::unordered_map<GameObject*, std::vector<Vtx> > Editor::gDebugObjVtxCache

◆ ObjectList

std::unordered_map<std::string, std::function<OObject*(const FVector&)> > Editor::ObjectList
Initial value:
= {
{ "Bat", [](const FVector& pos) { return new OBat(pos, IRotator(0, 0, 0)); } },
{ "Bomb Kart", [](const FVector& pos) { return new OBombKart(pos, &gTrackPaths[0][0], 0, 0, 0.8333333f); } },
{ "CheepCheep", [](const FVector& pos) { return new OCheepCheep(pos, OCheepCheep::CheepType::RACE, IPathSpan(0, 10)); } },
{ "Crab", [](const FVector& pos) { return new OCrab(FVector2D(0, 10), FVector2D(20, 10)); } },
{ "ChainChomp", [](const FVector& pos) { return new OChainChomp(); } },
{ "Flagpole", [](const FVector& pos) { return new OFlagpole(pos, 0); } },
{ "Hedgehog", [](const FVector& pos) { return new OHedgehog(pos, FVector2D(0, 10), 0); } },
{ "HotAirBalloon", [](const FVector& pos) { return new OHotAirBalloon(pos); } },
{ "Lakitu", [](const FVector& pos) { return new OLakitu(0, OLakitu::LakituType::STARTER); } },
{ "Chick Penguin", [](const FVector& pos) { return new OPenguin(pos, 0, OPenguin::PenguinType::CHICK, OPenguin::Behaviour::SLIDE3); } },
{ "Penguin", [](const FVector& pos) { return new OPenguin(pos, 0, OPenguin::PenguinType::ADULT, OPenguin::Behaviour::CIRCLE); } },
{ "Emperor Penguin", [](const FVector& pos) { return new OPenguin(pos, 0, OPenguin::PenguinType::EMPEROR, OPenguin::Behaviour::STRUT); } },
{ "Seagull", [](const FVector& pos) { return new OSeagull(pos); } },
{ "Thwomp", [](const FVector& pos) { return new OThwomp(pos.x, pos.z, 0, 1.0f, 0, 0, 2.0f); } },
{ "Trashbin", [](const FVector& pos) { return new OTrashBin(pos, IRotator(0, 0, 0), 1.0f, OTrashBin::Behaviour::MUNCHING); } },
{ "Trophy", [](const FVector& pos) { return new OTrophy(pos, OTrophy::TrophyType::GOLD_150, OTrophy::Behaviour::ROTATE2); } },
{ "Snowman", [](const FVector& pos) { return new OSnowman(pos); } },
{ "Podium", [](const FVector& pos) { return new OPodium(pos); } },
{ "Balloons", [](const FVector& pos) { return new OGrandPrixBalloons(pos); } },
}
Definition Bat.h:29
Definition BombKart.h:25
@ RACE
Definition CheepCheep.h:22
@ STARTER
Definition Lakitu.h:25
@ STRUT
Definition Penguin.h:29
@ CIRCLE
Definition Penguin.h:30
@ SLIDE3
Definition Penguin.h:31
@ ADULT
Definition Penguin.h:22
@ EMPEROR
Definition Penguin.h:24
@ CHICK
Definition Penguin.h:21
@ MUNCHING
Definition TrashBin.h:25
@ ROTATE2
Definition Trophy.h:35
@ GOLD_150
Definition Trophy.h:28
Definition CoreMath.h:123

◆ SceneFile

std::string Editor::SceneFile = ""