mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Split massive CModHandler class/file into multiple parts:
- IdentifierStorage is now a separate handler in VLC - Renamed ModHandler::Incompatibility exception to ModIncompatibility - Extracted ModScope namespace from ModHandler - Extracted ModUtilities namespace from ModHandler - Split CModHandler.cpp on per-class basis - Replaced some direct members with unique_ptr to reduce header includes
This commit is contained in:
@ -25,7 +25,10 @@
|
||||
#include "spells/effects/Registry.h"
|
||||
#include "CSkillHandler.h"
|
||||
#include "CGeneralTextHandler.h"
|
||||
#include "CModHandler.h"
|
||||
#include "modding/CModHandler.h"
|
||||
#include "modding/CModInfo.h"
|
||||
#include "modding/IdentifierStorage.h"
|
||||
#include "modding/CModVersion.h"
|
||||
#include "IGameEventsReceiver.h"
|
||||
#include "CStopWatch.h"
|
||||
#include "VCMIDirs.h"
|
||||
@ -106,6 +109,11 @@ const IBonusTypeHandler * LibClasses::getBth() const
|
||||
return bth;
|
||||
}
|
||||
|
||||
const CIdentifierStorage * LibClasses::identifiers() const
|
||||
{
|
||||
return &modh->getIdentifiers();
|
||||
}
|
||||
|
||||
const spells::effects::Registry * LibClasses::spellEffects() const
|
||||
{
|
||||
return spells::effects::GlobalRegistry::get();
|
||||
|
Reference in New Issue
Block a user