Finalization of refactoring:

- Entity interface now has getNameTranslated & getNameTextID methods
- Entity interface no longer has getName method
- removed (most) usages of normalizeIndentifier workaround method
- all moddable objects have identifier in form of mod:name
- all moddable object register strings in form of mod.type.name
This commit is contained in:
Ivan Savenko committed 2023-01-20 15:18:36 +02:00
1 parent 05a1d7c6e3
commit 47c1803c42
41 files changed
+152 -191

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ VCMI_LIB_NAMESPACE_BEGIN
TerrainType * TerrainTypeHandler::loadFromJson( const std::string & scope, const JsonNode & json, const std::string & identifier, size_t index)
{
assert(identifier.find(':') == std::string::npos);
TerrainType * info = new TerrainType;
info->id = TerrainId(index);