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