1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

introduce getModScope method toEntity class and subclasses

This commit is contained in:
godric3
2024-08-10 16:08:04 +02:00
parent 18e96171de
commit c34956e912
26 changed files with 85 additions and 6 deletions

View File

@@ -65,6 +65,11 @@ std::string RoadType::getJsonKey() const
return modScope + ":" + identifier;
}
std::string RoadType::getModScope() const
{
return modScope;
}
std::string RoadType::getNameTextID() const
{
return TextIdentifier( "road", modScope, identifier, "name" ).get();