#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" class CLodHandler; LibClasses * VLC = NULL; CLodHandler * bitmaph=NULL; CLogger<0> _log0; CLogger<1> _log1; CLogger<2> _log2; CLogger<3> _log3; CLogger<4> _log4; CLogger<5> _log5; CConsoleHandler *console = NULL; 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; CHeroHandler * heroh = new CHeroHandler; heroh->loadHeroes(); heroh->loadPortraits(); VLC->heroh = heroh; _log0 <<"\tHero handler: "<loadArtifacts(); VLC->arth = arth; _log0<<"\tArtifact handler: "<loadCreatures(); VLC->creh = creh; _log0<<"\tCreature handler: "<townh = new CTownHandler; VLC->townh->loadNames(); _log0<<"\tTown handler: "<loadObjects(); VLC->objh = objh; _log0<<"\tObject handler: "<dobjinfo = new CDefObjInfoHandler; VLC->dobjinfo->load(); _log0<<"\tDef information handler: "<buildh = new CBuildingHandler; VLC->buildh->loadBuildings(); _log0<<"\tBuilding handler: "<loadSpells(); VLC->spellh = spellh; _log0<<"\tSpell handler: "<