mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Renamed LoadScene to SetCurrentScene
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user