1
0
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:
AlexVinS
2014-05-18 18:47:18 +04:00
parent 950ca1156a
commit f2b61f7e69
5 changed files with 48 additions and 18 deletions

View File

@@ -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(){};