mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Remove few more implicit conversions
This commit is contained in:
@ -114,8 +114,6 @@ std::string MetaString::getLocalString(const std::pair<EMetaText, ui32> & txt) c
|
||||
{
|
||||
case EMetaText::GENERAL_TXT:
|
||||
return VLC->generaltexth->translate("core.genrltxt", ser);
|
||||
case EMetaText::RES_NAMES:
|
||||
return VLC->generaltexth->translate("core.restypes", ser);
|
||||
case EMetaText::ARRAY_TXT:
|
||||
return VLC->generaltexth->translate("core.arraytxt", ser);
|
||||
case EMetaText::ADVOB_TXT:
|
||||
@ -374,6 +372,11 @@ void MetaString::replaceName(const SpellID & id)
|
||||
replaceTextID(id.toEntity(VLC)->getNameTextID());
|
||||
}
|
||||
|
||||
void MetaString::replaceName(const GameResID& id)
|
||||
{
|
||||
replaceTextID(TextIdentifier("core.restypes", id.getNum()).get());
|
||||
}
|
||||
|
||||
void MetaString::replaceNameSingular(const CreatureID & id)
|
||||
{
|
||||
replaceTextID(id.toEntity(VLC)->getNameSingularTextID());
|
||||
|
Reference in New Issue
Block a user