diff options
Diffstat (limited to 'src/components/Light.hpp')
-rw-r--r-- | src/components/Light.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Light.hpp b/src/components/Light.hpp index 2cb0e1b..6849d7c 100644 --- a/src/components/Light.hpp +++ b/src/components/Light.hpp @@ -51,11 +51,15 @@ public: } void serialize(cereal::JSONOutputArchive& ar) final { - ar(r, g, b, strength); + ar(CEREAL_NVP(r), CEREAL_NVP(g), CEREAL_NVP(b), CEREAL_NVP(strength)); } void serialize(cereal::JSONInputArchive& ar) final { - ar(r, g, b, strength); + ar(CEREAL_NVP(r), CEREAL_NVP(g), CEREAL_NVP(b), CEREAL_NVP(strength)); + } + + std::string serializeName(void) const final { + return "Light"; } }; |