Renamed LoadScene to SetCurrentScene

This commit is contained in:
Antoine Pilote
2024-09-04 00:16:37 -04:00
parent 87f58d890e
commit 156bf8c5cc
2 changed files with 3 additions and 4 deletions

View File

@@ -159,7 +159,7 @@ namespace Nuake
return nullptr;
}
bool Engine::LoadScene(Ref<Scene> scene)
bool Engine::SetCurrentScene(Ref<Scene> scene)
{
return currentWindow->SetScene(scene);
}
@@ -173,7 +173,7 @@ namespace Nuake
{
currentProject = project;
if (!Engine::LoadScene(currentProject->DefaultScene))
if (!Engine::SetCurrentScene(currentProject->DefaultScene))
{
return false;
}

View File

@@ -17,7 +17,6 @@ namespace Nuake
class Engine
{
public:
static void Init(); // Initialize the engine.
static void Tick(); // Updates everything, called every frame.
@@ -43,7 +42,7 @@ namespace Nuake
static Ref<Window> GetCurrentWindow();
static bool LoadScene(Ref<Scene> scene);
static bool SetCurrentScene(Ref<Scene> scene);
static Ref<Scene> GetCurrentScene();
static bool LoadProject(Ref<Project> project);