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 (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)
 
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 Editor::DebugCollision ( GameObject * obj,
FVector pos,
IRotator rot,
FVector scale,
const std::vector< Triangle > & triangles )

◆ FromJsonCameraShot()

TourCamera::CameraShot Editor::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 Editor::FromJsonKeyFrame ( const nlohmann::json & j)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromJsonVec()

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

◆ GenerateCollisionMesh()

void Editor::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 Editor::Load_AddStaticMeshActor ( const nlohmann::json & actorJson)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadActors()

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

◆ LoadFog()

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

◆ LoadMinimap()

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

◆ LoadPaths()

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

◆ LoadProps()

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

◆ LoadStaticMeshActors()

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

◆ LoadTour()

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

◆ LoadTrackDataFromJson()

void Editor::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 Editor::LoadTrackInfo ( TrackInfo & info,
std::shared_ptr< Ship::Archive > archive,
std::string sceneFile )
Here is the call graph for this function:

◆ LoadTrackInfoData()

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

◆ SaveActors()

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

◆ SaveFog()

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

◆ SaveLevel()

void Editor::SaveLevel ( Track * track)

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 Editor::SaveStaticMeshActors ( nlohmann::json & actorList)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SaveTour()

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

◆ SetDefaultMinimap()

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

◆ SpawnActors()

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

◆ ToJson() [1/3]

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

◆ ToJson() [2/3]

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

◆ ToJson() [3/3]

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

Variable Documentation

◆ bIsTrainWindowOpen

bool Editor::bIsTrainWindowOpen = false

◆ gDebugObjVtxCache

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