|
7 | 7 | //////////////////////////////////////////////////////////////////////////// |
8 | 8 |
|
9 | 9 | #pragma once |
| 10 | +#include "xrCore/xrCore.h" |
10 | 11 |
|
11 | 12 | class NET_Packet; |
| 13 | +class IReader; |
| 14 | +class IWriter; |
12 | 15 |
|
13 | 16 | class IPureDestroyableObject { |
14 | 17 | public: |
15 | | - virtual void destroy() = 0; |
| 18 | + virtual ~IPureDestroyableObject() = 0; |
| 19 | + |
| 20 | + virtual void destroy() = 0; |
16 | 21 | }; |
17 | 22 |
|
| 23 | +IC IPureDestroyableObject::~IPureDestroyableObject() {} |
| 24 | + |
18 | 25 | template <typename _storage_type> |
19 | 26 | class IPureLoadableObject { |
20 | 27 | public: |
| 28 | + virtual ~IPureLoadableObject() = 0; |
21 | 29 | virtual void load(_storage_type &storage) = 0; |
22 | 30 | }; |
23 | 31 |
|
| 32 | +template <typename _storage_type> |
| 33 | +IC IPureLoadableObject<_storage_type>::~IPureLoadableObject() {} |
| 34 | + |
24 | 35 | template <typename _storage_type> |
25 | 36 | class IPureSavableObject { |
26 | 37 | public: |
| 38 | + virtual ~IPureSavableObject() = 0; |
27 | 39 | virtual void save(_storage_type &storage) = 0; |
28 | 40 | }; |
29 | 41 |
|
| 42 | +template <typename _storage_type> |
| 43 | +IC IPureSavableObject<_storage_type>::~IPureSavableObject() {} |
| 44 | + |
30 | 45 | template <typename _storage_type_load, typename _storage_type_save> |
31 | 46 | class IPureSerializeObject : public IPureLoadableObject<_storage_type_load>, public IPureSavableObject<_storage_type_save> { |
32 | 47 | public: |
| 48 | + virtual ~IPureSerializeObject() = 0; |
33 | 49 | }; |
34 | 50 |
|
| 51 | +template <typename _storage_type_load, typename _storage_type_save> |
| 52 | +IC IPureSerializeObject<typename _storage_type_load, typename _storage_type_save>::~IPureSerializeObject() {} |
| 53 | + |
35 | 54 | class IPureServerObject : public IPureSerializeObject<IReader,IWriter> { |
36 | 55 | public: |
| 56 | + virtual ~IPureServerObject() = 0; |
37 | 57 | virtual void STATE_Write (NET_Packet &tNetPacket) = 0; |
38 | 58 | virtual void STATE_Read (NET_Packet &tNetPacket, u16 size) = 0; |
39 | 59 | virtual void UPDATE_Write(NET_Packet &tNetPacket) = 0; |
40 | 60 | virtual void UPDATE_Read (NET_Packet &tNetPacket) = 0; |
41 | 61 | }; |
42 | 62 |
|
| 63 | +IC IPureServerObject::~IPureServerObject() {} |
| 64 | + |
43 | 65 | class IPureSchedulableObject { |
44 | 66 | public: |
| 67 | + virtual ~IPureSchedulableObject() = 0; |
45 | 68 | virtual void update () = 0; |
46 | 69 | }; |
| 70 | + |
| 71 | +IC IPureSchedulableObject::~IPureSchedulableObject() {} |
0 commit comments