OSDN Git Service

Fix version for serialization.
authorDeskull <deskull@users.sourceforge.jp>
Tue, 6 May 2014 14:11:12 +0000 (23:11 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 6 May 2014 14:11:12 +0000 (23:11 +0900)
Deeangband/Color.h
Deeangband/FixedFloor.h
Deeangband/Square.h

index 9519810..23c4b6d 100644 (file)
@@ -11,9 +11,6 @@
 #include "stdafx.h"
 #include "Deeangband.h"
 
-class Color;
-BOOST_CLASS_VERSION(Color, 1);
-
 namespace Deeangband
 {
 
@@ -102,3 +99,5 @@ namespace Deeangband
 
        };
 }
+
+BOOST_CLASS_VERSION(Deeangband::Color, 10);
index b184e10..e447acf 100644 (file)
@@ -63,4 +63,6 @@ namespace Deeangband
 
        };
 
-}
\ No newline at end of file
+}
+
+BOOST_CLASS_VERSION(Deeangband::FixedFloor, 10);
index f8181dd..b31a001 100644 (file)
@@ -29,9 +29,9 @@ namespace Deeangband
                friend class boost::serialization::access;
                template<class Archive> void serialize(Archive &archive, const unsigned int) 
                {
-                       archive & BOOST_SERIALIZATION_NVP(featureTag);
-                       archive & BOOST_SERIALIZATION_NVP(hitPoint);
-                       archive & BOOST_SERIALIZATION_NVP(maxPoint);
+                       archive & boost::serialization::make_nvp("Feature", featureTag);
+                       archive & boost::serialization::make_nvp("HP", hitPoint);
+                       archive & boost::serialization::make_nvp("MaxHP", maxPoint);
                }
 
        public:
@@ -86,4 +86,6 @@ namespace Deeangband
 
        };
 
-}
\ No newline at end of file
+}
+
+BOOST_CLASS_VERSION(Deeangband::Square, 10);