Fixed some lighting bug + serialization progress

This commit is contained in:
Antoine Pilote
2021-05-24 19:23:34 -04:00
parent e14a2f18d9
commit 1f1047d23b
33 changed files with 277 additions and 597 deletions

View File

@@ -532,7 +532,7 @@ Entity Scene::GetEntity(const std::string& name)
}
}
Entity Scene::CreateEmptyEntity(const std::string& name) {
Entity Scene::CreateEmptyEntity() {
Entity entity = { m_Registry.create(), this };
return entity;
}
@@ -639,7 +639,7 @@ bool Scene::Deserialize(const std::string& str)
for (json e : j["Entities"])
{
std::string name = e["NameComponent"]["Name"];
Entity ent = CreateEmptyEntity(name);
Entity ent = CreateEmptyEntity();
ent.Deserialize(e.dump());
}
}