mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Configurable icons for bonuses
It is now possible for mods (e.g. vcmi extras) to provide custom icons for bonuses subtypes or for custom bonuses values without requiring hardcoded check in vcmi. All existing hardcoded checks have been removed. Bonuses config json from mods is now actually loaded.
This commit is contained in:
@@ -51,7 +51,6 @@ namespace scripting
|
||||
/// Loads and constructs several handlers
|
||||
class DLL_LINKAGE GameLibrary final : public Services
|
||||
{
|
||||
std::shared_ptr<CBonusTypeHandler> bth;
|
||||
|
||||
std::shared_ptr<CContentHandler> getContent() const;
|
||||
void setContent(std::shared_ptr<CContentHandler> content);
|
||||
@@ -78,6 +77,7 @@ public:
|
||||
const CIdentifierStorage * identifiers() const;
|
||||
|
||||
std::shared_ptr<CArtHandler> arth;
|
||||
std::shared_ptr<CBonusTypeHandler> bth;
|
||||
std::shared_ptr<CHeroHandler> heroh;
|
||||
std::shared_ptr<CHeroClassHandler> heroclassesh;
|
||||
std::shared_ptr<CCreatureHandler> creh;
|
||||
|
||||
Reference in New Issue
Block a user