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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user