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

@@ -15,9 +15,8 @@ namespace Nuake
END_SERIALIZE();
}
bool ParticleEmitterComponent::Deserialize(const std::string& str)
bool ParticleEmitterComponent::Deserialize(const json& j)
{
BEGIN_DESERIALIZE();
DESERIALIZE_VEC4(j["ParticleColor"], ParticleColor);
Amount = j["Amount"];
Life = j["Life"];