Skip to content

Commit

Permalink
Naming convention update
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpect committed Sep 21, 2022
1 parent d02bf69 commit 1b14649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rootex/framework/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Vector<Scene*> Scene::s_Scenes;
SceneID Scene::BaseID;
static SceneID NextSceneID = ROOT_SCENE_ID + 1;
static SceneID SceneIDOffset = 4;

void to_json(JSON::json& j, const SceneSettings& s)
{
Expand Down Expand Up @@ -70,6 +69,7 @@ Ptr<Scene> Scene::Create(const JSON::json& sceneData, const bool assignNewIDs)
}
else
{
SceneID SceneIDOffset = 4;
NextSceneID = std::max(std::max(BaseID, NextSceneID), SceneIDOffset);
thisSceneID = NextSceneID;
}
Expand Down Expand Up @@ -349,7 +349,7 @@ Scene::Scene(SceneID id, const String& name, const SceneSettings& settings, Impo
, m_Entity(this)
{
setName(m_Name);
setm_BaseID();
setBaseID();
s_Scenes.push_back(this);
}

Expand Down
2 changes: 1 addition & 1 deletion rootex/framework/scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Scene
bool removeChild(Scene* toRemove);

void setName(const String& name);
void Scene::setm_BaseID() { m_BaseID = BaseID; }
void setBaseID() { m_BaseID = BaseID; }

JSON::json getJSON() const;
bool& getIsScenePaused() { return m_IsScenePaused; }
Expand Down

0 comments on commit 1b14649

Please sign in to comment.