1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +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

@ -13,7 +13,7 @@
#include "texts/CGeneralTextHandler.h"
#include "IGameSettings.h"
#include "json/JsonNode.h"
#include "VCMI_Lib.h"
#include "GameLibrary.h"
VCMI_LIB_NAMESPACE_BEGIN
@ -21,7 +21,7 @@ RoadTypeHandler::RoadTypeHandler()
{
objects.emplace_back(new RoadType());
VLC->generaltexth->registerString("core", objects[0]->getNameTextID(), "");
LIBRARY->generaltexth->registerString("core", objects[0]->getNameTextID(), "");
}
std::shared_ptr<RoadType> RoadTypeHandler::loadFromJson(
@ -41,7 +41,7 @@ std::shared_ptr<RoadType> RoadTypeHandler::loadFromJson(
info->shortIdentifier = json["shortIdentifier"].String();
info->movementCost = json["moveCost"].Integer();
VLC->generaltexth->registerString(scope,info->getNameTextID(), json["text"]);
LIBRARY->generaltexth->registerString(scope,info->getNameTextID(), json["text"]);
return info;
}
@ -54,7 +54,7 @@ const std::vector<std::string> & RoadTypeHandler::getTypeNames() const
std::vector<JsonNode> RoadTypeHandler::loadLegacyData()
{
size_t dataSize = VLC->engineSettings()->getInteger(EGameSettings::TEXTS_ROAD);
size_t dataSize = LIBRARY->engineSettings()->getInteger(EGameSettings::TEXTS_ROAD);
objects.resize(dataSize);
return {};
@ -77,7 +77,7 @@ std::string RoadType::getNameTextID() const
std::string RoadType::getNameTranslated() const
{
return VLC->generaltexth->translate(getNameTextID());
return LIBRARY->generaltexth->translate(getNameTextID());
}
RoadType::RoadType():