mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
629d934810
* using winapi for better console handling with MSVC (I hope I didn't break anything at GCC) * new logging system (use log0 - log5 for different priorities and colors (at msvc)) * using lists for storing activated interface objects * more proper closing of server
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
#ifndef VCMI_LIB_H
|
|
#define VCMI_LIB_H
|
|
#include "../global.h"
|
|
|
|
class CLodHandler;
|
|
class CArtHandler;
|
|
class CHeroHandler;
|
|
class CCreatureHandler;
|
|
//class CAbilityHandler;
|
|
class CSpellHandler;
|
|
//class CPreGameTextHandler;
|
|
class CBuildingHandler;
|
|
class CObjectHandler;
|
|
//class CMusicHandler;
|
|
//class CSemiLodHandler;
|
|
class CDefObjInfoHandler;
|
|
class CTownHandler;
|
|
//class CGeneralTextHandler;
|
|
//class CConsoleHandler;
|
|
//class CPathfinder;
|
|
//class CGameState;
|
|
|
|
class LibClasses
|
|
{
|
|
public:
|
|
//CGameState * state;
|
|
CArtHandler * arth;
|
|
CHeroHandler * heroh;
|
|
CCreatureHandler * creh;
|
|
//CAbilityHandler * abilh;
|
|
CSpellHandler * spellh;
|
|
//CPreGameTextHandler * preth;
|
|
CBuildingHandler * buildh;
|
|
CObjectHandler * objh;
|
|
CDefObjInfoHandler * dobjinfo;
|
|
CTownHandler * townh;
|
|
//CGeneralTextHandler * generaltexth;
|
|
//CConsoleHandler * consoleh;
|
|
//CPathfinder * pathf;
|
|
};
|
|
|
|
extern DLL_EXPORT LibClasses * VLC;
|
|
|
|
DLL_EXPORT void loadToIt(std::string &dest, std::string &src, int &iter, int mode);
|
|
DLL_EXPORT void loadToIt(si32 &dest, std::string &src, int &iter, int mode);
|
|
|
|
DLL_EXPORT void initDLL(CLodHandler *b, CConsoleHandler *Console, std::ostream *Logfile);
|
|
|
|
#endif //VCMI_LIB_H
|