1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #5608 from Laserlicht/campaigneditor

campaign editor
This commit is contained in:
Ivan Savenko
2025-04-15 17:55:13 +03:00
committed by GitHub
33 changed files with 3479 additions and 123 deletions

View File

@@ -14,6 +14,7 @@
#include "CCreatureHandler.h"
#include "CCreatureSet.h"
#include "entities/faction/CFaction.h"
#include "entities/hero/CHero.h"
#include "texts/CGeneralTextHandler.h"
#include "CSkillHandler.h"
#include "GameConstants.h"
@@ -38,6 +39,13 @@ MetaString MetaString::createFromTextID(const std::string & value)
return result;
}
MetaString MetaString::createFromName(const GameResID& id)
{
MetaString result;
result.appendName(id);
return result;
}
void MetaString::appendLocalString(EMetaText type, ui32 serial)
{
message.push_back(EMessage::APPEND_LOCAL_STRING);

View File

@@ -67,6 +67,8 @@ public:
static MetaString createFromRawString(const std::string & value);
/// Creates MetaString and appends provided text ID string to it
static MetaString createFromTextID(const std::string & value);
/// Creates MetaString and appends provided name string to it
static MetaString createFromName(const GameResID& id);
/// Appends local string to resulting string
void appendLocalString(EMetaText type, ui32 serial);