forked from rickyrombo/TileBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditData.hpp
51 lines (45 loc) · 848 Bytes
/
EditData.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
struct EditData
{
EditData()
{
}
EditData(const EditData &from)
{
}
EditData &operator=(const EditData &from)
{
}
#ifndef RUN_ONLY
bool Serialize(mv *mV, SerializedED *&SED) const
{
unsigned size = 0;
{
SerializedED *t = (SerializedED *)mvReAllocEditData(mV, SED, sizeof(SerializedED)+size);
if(t)
{
SED = t;
}
else return false;
}
// char *p = (char *)(&SED->data);
return true;
}
#endif
EditData(SerializedED *SED)
{
if(SED->Header.extVersion == 1)
{
//nothing to load from old structure
}
else
{
MessageBox(NULL, _T("The MFA you are trying to load was saved ")
_T("with an unknown version of TileBox. Make ")
_T("sure you don't save over your old MFA."),
_T("Error Loading TileBox"), MB_OK);
}
}
~EditData()
{
}
};