Mario Kart 64
Loading...
Searching...
No Matches
TrackEditor 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 (std::variant< AActor *, OObject *, GameObject * > object, Gfx *model, float scale)
 
void DebugCollision (GameObject *obj, FVector pos, IRotator rot, FVector scale, const std::vector< Triangle > &triangles)
 
void SaveLevel (Track *track, const TrackInfo *info)
 
void LoadTrackDataFromJson (Track *track, const std::string &trackPath)
 
void LoadTrackInfo (TrackInfo &info, std::shared_ptr< Ship::Archive > archive, std::string sceneFile)
 
void Load_AddStaticMeshActor (const nlohmann::json &actorJson)
 
void LoadMinimap (Track *track, std::string filePath)
 
void SetDefaultMinimap (Track *track)
 
void SaveActors (nlohmann::json &actorList)
 
void SaveStaticMeshActors (nlohmann::json &actorList)
 
void SaveTour (Track *track, nlohmann::json &tour)
 
void SaveFog (nlohmann::json &fog)
 
void LoadProps (Track *track, nlohmann::json &data)
 
void LoadPaths (Track *track, const std::string &trackPath)
 
void LoadTrackInfoData (TrackInfo &info, nlohmann::json &data)
 
void LoadActors (Track *track, nlohmann::json &data)
 
void LoadStaticMeshActors (Track *track, nlohmann::json &data)
 
void LoadTour (Track *track, nlohmann::json &data)
 
void LoadFog (nlohmann::json &data)
 
void SpawnActors (std::vector< std::pair< std::string, SpawnParams > > spawnList)
 
nlohmann::json ToJson (const FVector &v)
 
nlohmann::json ToJson (const TourCamera::KeyFrame &kf)
 
nlohmann::json ToJson (const TourCamera::CameraShot &shot)
 
FVector FromJsonVec (const nlohmann::json &j)
 
TourCamera::KeyFrame FromJsonKeyFrame (const nlohmann::json &j)
 
TourCamera::CameraShot FromJsonCameraShot (const nlohmann::json &j)
 

Variables

std::unordered_map< GameObject *, std::vector< Vtx > > gDebugObjVtxCache
 
bool bIsTrainWindowOpen = false
 

Function Documentation

◆ DebugCollision()

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

◆ FromJsonCameraShot()

TourCamera::CameraShot TrackEditor::FromJsonCameraShot ( const nlohmann::json & j)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromJsonKeyFrame()

TourCamera::KeyFrame TrackEditor::FromJsonKeyFrame ( const nlohmann::json & j)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromJsonVec()

FVector TrackEditor::FromJsonVec ( const nlohmann::json & j)
inline
Here is the caller graph for this function:

◆ GenerateCollisionMesh()

void TrackEditor::GenerateCollisionMesh ( std::variant< AActor *, OObject *, GameObject * > object,
Gfx * model,
float scale )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Load_AddStaticMeshActor()

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

◆ LoadActors()

void TrackEditor::LoadActors ( Track * track,
nlohmann::json & data )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadFog()

void TrackEditor::LoadFog ( nlohmann::json & data)

◆ LoadMinimap()

void TrackEditor::LoadMinimap ( Track * track,
std::string filePath )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadPaths()

void TrackEditor::LoadPaths ( Track * track,
const std::string & trackPath )
Here is the caller graph for this function:

◆ LoadProps()

void TrackEditor::LoadProps ( Track * track,
nlohmann::json & data )
Here is the caller graph for this function:

◆ LoadStaticMeshActors()

void TrackEditor::LoadStaticMeshActors ( Track * track,
nlohmann::json & data )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadTour()

void TrackEditor::LoadTour ( Track * track,
nlohmann::json & data )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadTrackDataFromJson()

void TrackEditor::LoadTrackDataFromJson ( Track * track,
const std::string & trackPath )

Do not use GetWorld()->CurrentCourse during loading! The current track is not guaranteed!

Here is the call graph for this function:

◆ LoadTrackInfo()

void TrackEditor::LoadTrackInfo ( TrackInfo & info,
std::shared_ptr< Ship::Archive > archive,
std::string sceneFile )
Here is the call graph for this function:

◆ LoadTrackInfoData()

void TrackEditor::LoadTrackInfoData ( TrackInfo & info,
nlohmann::json & data )
Here is the caller graph for this function:

◆ SaveActors()

void TrackEditor::SaveActors ( nlohmann::json & actorList)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SaveFog()

void TrackEditor::SaveFog ( nlohmann::json & fog)
Here is the caller graph for this function:

◆ SaveLevel()

void TrackEditor::SaveLevel ( Track * track,
const TrackInfo * info )

Save track properties, static mesh actors, actors, and tour camera

Write data to file

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SaveStaticMeshActors()

void TrackEditor::SaveStaticMeshActors ( nlohmann::json & actorList)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SaveTour()

void TrackEditor::SaveTour ( Track * track,
nlohmann::json & tour )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDefaultMinimap()

void TrackEditor::SetDefaultMinimap ( Track * track)
Here is the caller graph for this function:

◆ SpawnActors()

void TrackEditor::SpawnActors ( std::vector< std::pair< std::string, SpawnParams > > spawnList)

◆ ToJson() [1/3]

nlohmann::json TrackEditor::ToJson ( const FVector & v)
inline
Here is the caller graph for this function:

◆ ToJson() [2/3]

nlohmann::json TrackEditor::ToJson ( const TourCamera::CameraShot & shot)
inline
Here is the call graph for this function:

◆ ToJson() [3/3]

nlohmann::json TrackEditor::ToJson ( const TourCamera::KeyFrame & kf)
inline
Here is the call graph for this function:

Variable Documentation

◆ bIsTrainWindowOpen

bool TrackEditor::bIsTrainWindowOpen = false

◆ gDebugObjVtxCache

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