@@ -22,36 +22,18 @@ class IPureDestroyableObject {
2222
2323IC IPureDestroyableObject::~IPureDestroyableObject () {}
2424
25- template < typename _storage_type>
26- class IPureLoadableObject {
25+ class ISerializable
26+ {
2727public:
28- virtual ~IPureLoadableObject () = 0 ;
29- virtual void load (_storage_type &storage) = 0;
28+ virtual ~ISerializable () = 0 ;
29+ virtual void load (IReader &reader) = 0;
30+ virtual void save (IWriter &writer) = 0;
3031};
3132
32- template <typename _storage_type>
33- IC IPureLoadableObject<_storage_type>::~IPureLoadableObject () {}
33+ IC ISerializable::~ISerializable () {}
3434
35- template <typename _storage_type>
36- class IPureSavableObject {
37- public:
38- virtual ~IPureSavableObject () = 0 ;
39- virtual void save (_storage_type &storage) = 0;
40- };
41-
42- template <typename _storage_type>
43- IC IPureSavableObject<_storage_type>::~IPureSavableObject () {}
44-
45- template <typename _storage_type_load, typename _storage_type_save>
46- class IPureSerializeObject : public IPureLoadableObject <_storage_type_load>, public IPureSavableObject<_storage_type_save> {
47- public:
48- virtual ~IPureSerializeObject () = 0 ;
49- };
50-
51- template <typename _storage_type_load, typename _storage_type_save>
52- IC IPureSerializeObject<typename _storage_type_load, typename _storage_type_save>::~IPureSerializeObject () {}
53-
54- class IPureServerObject : public IPureSerializeObject <IReader,IWriter> {
35+ class IPureServerObject : public ISerializable
36+ {
5537public:
5638 virtual ~IPureServerObject () = 0 ;
5739 virtual void STATE_Write (NET_Packet &tNetPacket) = 0;
0 commit comments