62 static void SetInstance(
EngineCore& engineCore);
65 bool isEditor =
false;
66 const char* applicationModuleName =
nullptr;
67 const char* applicationTitle =
nullptr;
68 const char* projectPath =
nullptr;
69 const char* engineBinaryPath =
nullptr;
80 virtual void InitializeScene(
bool shouldLoadSceneFromDefaults,
const char* scenePath =
nullptr);
81 virtual void ShowMainWindow();
85 virtual void RunEditorLoopIteration();
86 virtual void RunLoopIteration();
87 virtual void UpdateWindows();
103 virtual std::filesystem::path GetProjectPath()
const;
104 virtual std::filesystem::path GetBinaryPath()
const;
105 virtual std::filesystem::path GetEngineBinaryPath()
const;
106 virtual std::filesystem::path GetAssetsPath()
const;
107 virtual std::filesystem::path GetEngineAssetsPath()
const;
108 virtual std::filesystem::path GetAssetPath(std::string subPath)
const;
109 virtual entt::registry& GetEntityRegistry();
110 virtual void ReloadCsharpBinaries();
114 virtual void CalculateDeltaTime();
115 virtual double GetTimeSinceLaunch()
const;
116 virtual double GetDeltaTime()
const;
117 virtual void PushDeletion(std::function<
void()> fn);
125 std::function<void()> callbackReloadCsharp;
126 bool isEditor =
false;
129 double currentTime = 0.0;
130 double deltaTime = 0.0;
131 std::chrono::steady_clock::time_point firstFrameTime;
132 std::chrono::steady_clock::time_point lastFrameTime;
143 bool shouldClose =
false;
144 std::filesystem::path projectPath;
145 std::filesystem::path binaryPath;
146 std::filesystem::path engineBinaryPath;
147 std::filesystem::path engineAssetsPath;
148 std::filesystem::path assetsPath;
Definition WorldContextManager.hpp:12