1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Mod Handler class. It is connected with engine, but doesn't do anything yet.

This commit is contained in:
DjWarmonger
2012-08-10 13:07:53 +00:00
parent d72c44e4c3
commit 289b7b68d9
14 changed files with 183 additions and 9 deletions

View File

@@ -19,6 +19,7 @@ class CObjectHandler;
class CDefObjInfoHandler;
class CTownHandler;
class CGeneralTextHandler;
class CModHandler;
/// Loads and constructs several handlers
class DLL_LINKAGE LibClasses
@@ -34,6 +35,7 @@ public:
CDefObjInfoHandler * dobjinfo;
CTownHandler * townh;
CGeneralTextHandler * generaltexth;
CModHandler * modh;
LibClasses(); //c-tor, loads .lods and NULLs handlers
~LibClasses();
@@ -46,7 +48,7 @@ public:
void callWhenDeserializing(); //should be called only by serialize !!!
template <typename Handler> void serialize(Handler &h, const int version)
{
h & heroh & arth & creh & townh & objh & dobjinfo & buildh & spellh & IS_AI_ENABLED;;
h & heroh & arth & creh & townh & objh & dobjinfo & buildh & spellh & modh & IS_AI_ENABLED;;
if(!h.saving)
{
callWhenDeserializing();