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