mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
- Added handler classes CRmgTemplateStorage and CTerrainViewPatternConfig to LibClasses
- Re-organized CMapGenerator - Created CZone and CTemplate objects in the heap and used pointers - Added stub classes CZoneGraphGenerator and CZonePlacer (include warnings of unused variables, please ignore them) - Fixed CRandomGenerator bug that always the same number was produced - Better structure of Visual Studio project files with using filters - Updated project files (VS, CMake) - Excluded compiler warning mismatched-tags (false positive) - Fixed a bug when compiling with unit tests enabled
This commit is contained in:
@ -27,6 +27,8 @@
|
||||
#include "VCMIDirs.h"
|
||||
#include "filesystem/Filesystem.h"
|
||||
#include "CConsoleHandler.h"
|
||||
#include "rmg/CRmgTemplateStorage.h"
|
||||
#include "mapping/CMapEditManager.h"
|
||||
|
||||
LibClasses * VLC = nullptr;
|
||||
|
||||
@ -111,6 +113,10 @@ void LibClasses::init()
|
||||
|
||||
createHandler(spellh, "Spell", pomtime);
|
||||
|
||||
createHandler(terviewh, "Terrain view pattern", pomtime);
|
||||
|
||||
createHandler(tplh, "Template", pomtime);
|
||||
|
||||
logGlobal->infoStream()<<"\tInitializing handlers: "<< totalTime.getDiff();
|
||||
|
||||
modh->loadGameContent();
|
||||
@ -133,6 +139,8 @@ void LibClasses::clear()
|
||||
delete spellh;
|
||||
delete modh;
|
||||
delete bth;
|
||||
delete tplh;
|
||||
delete terviewh;
|
||||
makeNull();
|
||||
}
|
||||
|
||||
@ -148,6 +156,8 @@ void LibClasses::makeNull()
|
||||
spellh = nullptr;
|
||||
modh = nullptr;
|
||||
bth = nullptr;
|
||||
tplh = nullptr;
|
||||
terviewh = nullptr;
|
||||
}
|
||||
|
||||
LibClasses::LibClasses()
|
||||
|
Reference in New Issue
Block a user