1 #ifndef S_CREATURESIMAGE_H
2 #define S_CREATURESIMAGE_H 1
4 #include "serialization.h"
5 #include "creaturesImage.h"
8 typedef creaturesImage
*p_img
;
11 namespace serialization
{
12 template <class Archive
>
13 inline void save(Archive
&ar
, const p_img
&obj
, const int version
) {
14 bool isNull
= (obj
== NULL
);
17 std::string name
= obj
->getName();
22 template <class Archive
>
23 inline void load(Archive
&ar
, p_img
&obj
, const int version
) {
31 obj
= world
.gallery
.getImage(name
);
37 BOOST_SERIALIZATION_SPLIT_FREE(creaturesImage
*);
38 BOOST_CLASS_IMPLEMENTATION(creaturesImage
*, boost::serialization::primitive_type
);