* <H2>\83X\83e\81[\83^\83X\97v\91f</H2>
* \83g\83\89\83b\83v\83x\81[\83X\82Í\88È\89º\82Ì\83X\83e\81[\83^\83X\97v\91f\82ð\8e\9d\82Á\82Ä\82¢\82é\81B
* <ul>
+ * <li>\94z\92u\83t\83\8d\83AID/FloorID</li>
+ * <li>\94z\92u\8dÀ\95W/Position</li>
* <li>\8c»\8dÝ\91Ï\8bv\93x/CurrentHP</li>
* <li>\8dÅ\91å\91Ï\8bv\93x/MaxHP</li>
* <li>\89ð\8f\9c\93ï\93x/Difficulty</li>
* @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
* @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
*/
- template<class Archive> void serialize(Archive &archive, const unsigned int)
+ template<class Archive> void serialize(Archive &archive, const unsigned int version)
{
- archive & BOOST_SERIALIZATION_NVP(floorID);
- archive & BOOST_SERIALIZATION_NVP(position);
+ if(version > 0)
+ {
+ archive & boost::serialization::make_nvp("FloorID", floorID);
+ archive & boost::serialization::make_nvp("Position", position);
+ archive & boost::serialization::make_nvp("CurHP", curHP);
+ archive & boost::serialization::make_nvp("MaxHP", maxHP);
+ archive & boost::serialization::make_nvp("Difficulty", difficulty);
+ }
}
public:
*/
template<class Archive> void serialize(Archive &archive, const unsigned int)
{
- archive & BOOST_SERIALIZATION_NVP(name);
+ archive & boost::serialization::make_nvp("Name", name);
+ archive & boost::serialization::make_nvp("MinDepth", minDepth);
+ archive & boost::serialization::make_nvp("MaxDepth", maxDepth);
+ archive & boost::serialization::make_nvp("Rarity", rarity);
+ archive & boost::serialization::make_nvp("BaseHP", baseHP);
+ archive & boost::serialization::make_nvp("BaseDifficulty", baseDifficulty);
}
private: