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

Renamed LibClasses * VLC to GameLibrary * LIBRARY

This commit is contained in:
Ivan Savenko
2025-02-14 16:23:37 +00:00
parent 156de5b17e
commit 645b95ba02
287 changed files with 2032 additions and 2032 deletions

View File

@@ -11,7 +11,7 @@
#include "Unit.h"
#include "../VCMI_Lib.h"
#include "../GameLibrary.h"
#include "../texts/CGeneralTextHandler.h"
#include "../serializer/JsonDeserializer.h"
@@ -176,11 +176,11 @@ BattleHex Unit::occupiedHex(const BattleHex & assumedPos, bool twoHex, BattleSid
void Unit::addText(MetaString & text, EMetaText type, int32_t serial, const boost::logic::tribool & plural) const
{
if(boost::logic::indeterminate(plural))
serial = VLC->generaltexth->pluralText(serial, getCount());
serial = LIBRARY->generaltexth->pluralText(serial, getCount());
else if(plural)
serial = VLC->generaltexth->pluralText(serial, 2);
serial = LIBRARY->generaltexth->pluralText(serial, 2);
else
serial = VLC->generaltexth->pluralText(serial, 1);
serial = LIBRARY->generaltexth->pluralText(serial, 1);
text.appendLocalString(type, serial);
}
@@ -197,7 +197,7 @@ void Unit::addNameReplacement(MetaString & text, const boost::logic::tribool & p
std::string Unit::formatGeneralMessage(const int32_t baseTextId) const
{
const int32_t textId = VLC->generaltexth->pluralText(baseTextId, getCount());
const int32_t textId = LIBRARY->generaltexth->pluralText(baseTextId, getCount());
MetaString text;
text.appendLocalString(EMetaText::GENERAL_TXT, textId);