Optimized deserialization

This commit is contained in:
Antoine Pilote
2023-08-03 18:56:30 -04:00
parent df24ab3259
commit a5ee88cb8e
52 changed files with 82 additions and 127 deletions

View File

@@ -45,10 +45,8 @@ namespace Nuake
END_SERIALIZE();
}
bool SpriteComponent::Deserialize(const std::string& str)
bool SpriteComponent::Deserialize(const json& j)
{
BEGIN_DESERIALIZE();
if (j.contains("Billboard"))
{
Billboard = j["Billboard"];