28 #include "eng3d/string.hpp"
40 template<
bool is_const>
42 template<
bool is_serialize>
44 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.cached_id);
45 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.ref_name);
46 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.name);
47 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.effects);
48 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.extra_data);
49 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.do_decision_function);
69 template<
bool is_const>
71 template<
bool is_serialize>
73 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.cached_id);
74 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.ref_name);
75 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.name);
76 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.receiver_ids);
77 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.decisions);
78 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.text);
79 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.title);
80 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.extra_data);
81 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.checked);
82 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.conditions_function);
83 Eng3D::Deser::deser_dynamic<is_serialize>(ar, obj.do_event_function);
Eng3D::StringRef extra_data
Base class that serves as archiver, stores (in memory) the data required for serialization/deserializ...
typename Eng3D::Deser::CondConstType< is_const, Decision >::type type
static void deser_dynamic(Eng3D::Deser::Archive &ar, type< is_serialize > &obj)
static void deser_dynamic(Eng3D::Deser::Archive &ar, type< is_serialize > &obj)
typename Eng3D::Deser::CondConstType< is_const, ::Event >::type type
A serializer (base class) which can be used to serialize objects and create per-object optimized clas...
A reference to a string on the global string pool.
std::vector< NationId > receiver_ids
void take_decision(Nation &sender, Decision &dec)
Eng3D::StringRef extra_data
std::vector< Decision > decisions
An entity which can be referenced via a ref_name and also via id.