diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-02 18:53:21 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-02 18:53:21 -0400 |
commit | aa7b0a92d065b4435467d482ec65dd97b03459ee (patch) | |
tree | 0b1c4406f4fbeea6fee2e73eaf735386c5cc1ab6 /src/components/Render.hpp | |
parent | 6614ea639414caab546091841bf920fe6459cc9e (diff) |
made json names readable
Diffstat (limited to 'src/components/Render.hpp')
-rw-r--r-- | src/components/Render.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Render.hpp b/src/components/Render.hpp index 49a9588..81ca591 100644 --- a/src/components/Render.hpp +++ b/src/components/Render.hpp @@ -55,11 +55,15 @@ public: } void serialize(cereal::JSONOutputArchive& ar) final { - ar(visible, flipX); + ar(CEREAL_NVP(visible), CEREAL_NVP(flipX)); } void serialize(cereal::JSONInputArchive& ar) final { - ar(visible, flipX); + ar(CEREAL_NVP(visible), CEREAL_NVP(flipX)); + } + + std::string serializeName(void) const final { + return "Render"; } }; |