20 #include <boost/serialization/access.hpp>
21 #include <boost/serialization/nvp.hpp>
22 #include <boost/serialization/list.hpp>
23 #include <boost/serialization/map.hpp>
24 #include <boost/serialization/vector.hpp>
25 #include <boost/serialization/string.hpp>
38 DtRangeRingsFill2D = 0x00000001,
39 DtRangeRingsShowRangeSphere = 0x00000002,
40 DtRangeRingsShowWeaponNameLabel = 0x00000004,
41 DtRangeRingsShowEntityNameLabel = 0x00000008,
42 DtRangeRingsShowRangeValueLabel = 0x00000010
57 friend class boost::serialization::access;
62 template<
class Archive>
63 void serialize(Archive & ar,
const unsigned int version)
65 ar & BOOST_SERIALIZATION_NVP(color);
67 if (Archive::is_loading::value)
70 ar & BOOST_SERIALIZATION_NVP(serLabel);
76 std::string serLabel = label.
toAscii();
77 ar & BOOST_SERIALIZATION_NVP(serLabel);
92 virtual void setFlag(
int flag,
bool set);
98 void setShowRangeSphere(
bool );
99 bool showRangeSphere()
const;
101 void setShowWeaponNameLabel(
bool );
102 bool showWeaponNameLabel()
const;
104 void setShowEntityNameLabel(
bool );
105 bool showEntityNameLabel()
const;
107 void setShowRangeValueLabel(
bool );
108 bool showRangeValueLabel()
const;
115 void removeColorOption(
int type);
122 return myColorOptions;
126 friend class boost::serialization::access;
131 template<
class Archive>
132 void serialize(Archive & ar,
const unsigned int version)
134 ar & BOOST_SERIALIZATION_NVP(myDisplayOptions);
135 ar & BOOST_SERIALIZATION_NVP(myColorOptions);