mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Part 2 of new spell configuration
1) spell handler refactored to support modding in general way 2) imunnity icons moved to WoG as they depends on wog`s graphics 3) introduced new class template for handlers (todo: use this in other handlers) 4) save format changed 5) introduced "absolute immunity" - unaffected by "the Orb" etc. (todo: use it in config) 6) new format documented on wiki, added json schema. * more split of registertypes - fixes 32 mingw build
This commit is contained in:
		| @@ -14,6 +14,7 @@ | ||||
| #include "StringConstants.h" | ||||
| #include "CStopWatch.h" | ||||
| #include "IHandlerBase.h" | ||||
| #include "CSpellHandler.h" | ||||
|  | ||||
| /* | ||||
|  * CModHandler.cpp, part of VCMI engine | ||||
| @@ -337,13 +338,14 @@ void CContentHandler::ContentTypeHandler::afterLoadFinalization() | ||||
|  | ||||
| CContentHandler::CContentHandler() | ||||
| { | ||||
| 	handlers.insert(std::make_pair("heroClasses", ContentTypeHandler(&VLC->heroh->classes, "heroClass"))); | ||||
|  	handlers.insert(std::make_pair("heroClasses", ContentTypeHandler(&VLC->heroh->classes, "heroClass"))); | ||||
| 	handlers.insert(std::make_pair("artifacts", ContentTypeHandler(VLC->arth, "artifact"))); | ||||
| 	handlers.insert(std::make_pair("creatures", ContentTypeHandler(VLC->creh, "creature"))); | ||||
| 	handlers.insert(std::make_pair("factions", ContentTypeHandler(VLC->townh, "faction"))); | ||||
| 	handlers.insert(std::make_pair("heroes", ContentTypeHandler(VLC->heroh, "hero"))); | ||||
|     handlers.insert(std::make_pair("spells", ContentTypeHandler(VLC->spellh, "spell"))); | ||||
|  | ||||
| 	//TODO: spells, bonuses, something else? | ||||
| 	//TODO: bonuses, something else? | ||||
| } | ||||
|  | ||||
| bool CContentHandler::preloadModData(std::string modName, JsonNode modConfig, bool validate) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user