#define VCMI_DLL #include "../global.h" #include "VCMI_Lib.h" #include "../hch/CArtHandler.h" #include "../hch/CCreatureHandler.h" #include "../hch/CDefObjInfoHandler.h" #include "../hch/CHeroHandler.h" #include "../hch/CObjectHandler.h" #include "../hch/CTownHandler.h" #include "../hch/CBuildingHandler.h" #include "../hch/CSpellHandler.h" #include "../hch/CGeneralTextHandler.h" class CLodHandler; LibClasses * VLC = NULL; CLodHandler * bitmaph=NULL; DLL_EXPORT CLogger<0> tlog0; DLL_EXPORT CLogger<1> tlog1; DLL_EXPORT CLogger<2> tlog2; DLL_EXPORT CLogger<3> tlog3; DLL_EXPORT CLogger<4> tlog4; DLL_EXPORT CLogger<5> tlog5; DLL_EXPORT CConsoleHandler *console = NULL; DLL_EXPORT std::ostream *logfile = NULL; DLL_EXPORT void initDLL(CLodHandler *b, CConsoleHandler *Console, std::ostream *Logfile) { console = Console; logfile = Logfile; timeHandler pomtime; bitmaph=b; VLC = new LibClasses; VLC->generaltexth = new CGeneralTextHandler; VLC->generaltexth->loadTexts(); VLC->generaltexth->load(); tlog0<<"\tGeneral text handler: "<loadHeroes(); VLC->heroh = heroh; tlog0 <<"\tHero handler: "<loadArtifacts(); VLC->arth = arth; tlog0<<"\tArtifact handler: "<loadCreatures(); VLC->creh = creh; tlog0<<"\tCreature handler: "<townh = new CTownHandler; VLC->townh->loadNames(); tlog0<<"\tTown handler: "<loadObjects(); VLC->objh = objh; tlog0<<"\tObject handler: "<dobjinfo = new CDefObjInfoHandler; VLC->dobjinfo->load(); tlog0<<"\tDef information handler: "<buildh = new CBuildingHandler; VLC->buildh->loadBuildings(); tlog0<<"\tBuilding handler: "<loadSpells(); VLC->spellh = spellh; tlog0<<"\tSpell handler: "<