Mario Kart 64
Loading...
Searching...
No Matches
SceneManager.h
Go to the documentation of this file.
1#pragma once
2
3#include <libultraship/libultraship.h>
4#include "CoreMath.h"
6#include <optional>
7#include <nlohmann/json.hpp>
8
9namespace Editor {
10 void SaveLevel();
11 void LoadLevel(Course* course, std::string sceneFile);
12 void Load_AddStaticMeshActor(const nlohmann::json& actorJson);
13 void SetSceneFile(std::shared_ptr<Ship::Archive> archive, std::string sceneFile);
14 void LoadMinimap(Course* course, std::string filePath);
15
16 void SaveActors(nlohmann::json& actorList);
17 void SpawnActors(std::vector<std::pair<std::string, SpawnParams>> spawnList);
18
19 extern std::shared_ptr<Ship::Archive> CurrentArchive; // This is used to retrieve and write the scene data file
20 extern std::string SceneFile;
21}
Definition Collision.cpp:16
std::shared_ptr< Ship::Archive > CurrentArchive
Definition SceneManager.cpp:32
void Load_AddStaticMeshActor(const nlohmann::json &actorJson)
Definition SceneManager.cpp:139
void SaveLevel()
Definition SceneManager.cpp:35
void SetSceneFile(std::shared_ptr< Ship::Archive > archive, std::string sceneFile)
Definition SceneManager.cpp:148
void LoadMinimap(Course *course, std::string filePath)
Definition SceneManager.cpp:153
std::string SceneFile
Definition SceneManager.cpp:33
void SaveActors(nlohmann::json &actorList)
Definition SceneManager.cpp:180
void LoadLevel(Course *course, std::string sceneFile)
Definition SceneManager.cpp:81
void SpawnActors(std::vector< std::pair< std::string, SpawnParams > > spawnList)