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

@@ -222,10 +222,8 @@ namespace Nuake
return j;
}
bool EditorCamera::Deserialize(const std::string& str)
bool EditorCamera::Deserialize(const json& j)
{
BEGIN_DESERIALIZE();
DESERIALIZE_VEC3(j["Translation"], Translation);
SetYaw(j["Yaw"]);
SetPitch(j["Pitch"]);