1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

Split registerTypes into multiple files, now in lib/registerTypes

directory in order to reduce huge memory usage by gcc
This commit is contained in:
Ivan Savenko
2014-02-24 19:57:33 +00:00
parent 6d73052ca1
commit 8d36bcabce
14 changed files with 242 additions and 70 deletions

View File

@ -18,7 +18,7 @@
#include "mapping/CMapService.h"
#include "StartInfo.h"
#include "NetPacks.h"
#include "RegisterTypes.h"
#include "registerTypes/RegisterTypes.h"
#include "mapping/CMapInfo.h"
#include "BattleState.h"
#include "JsonNode.h"
@ -109,7 +109,7 @@ static CApplier<CBaseForGSApply> *applierGs = nullptr;
//
// CObjectCallersHandler()
// {
// registerTypes1(*this);
// registerTypesMapObjects(*this);
// }
//
// ~CObjectCallersHandler()
@ -729,7 +729,8 @@ CGameState::CGameState()
gs = this;
mx = new boost::shared_mutex();
applierGs = new CApplier<CBaseForGSApply>;
registerTypes2(*applierGs);
registerTypesClientPacks1(*applierGs);
registerTypesClientPacks2(*applierGs);
//objCaller = new CObjectCallersHandler;
globalEffects.setDescription("Global effects");
}