mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Spell configuration: introduce simplifaction mechanism for level conficuration
* also aviable for other handlers
This commit is contained in:
@@ -32,6 +32,9 @@ public:
|
||||
virtual void loadObject(std::string scope, std::string name, const JsonNode & data) = 0;
|
||||
virtual void loadObject(std::string scope, std::string name, const JsonNode & data, size_t index) = 0;
|
||||
|
||||
/// allows handlers to alter object configuration before validation and actual load
|
||||
virtual void beforeValidate(JsonNode & object){};
|
||||
|
||||
/// allows handler to do post-loading step for validation or integration of loaded data
|
||||
virtual void afterLoadFinalization(){};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user