1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00
This commit is contained in:
nordsoft
2023-10-09 04:26:08 +02:00
parent 6a7b23c007
commit b7568a160c
3 changed files with 28 additions and 3 deletions

View File

@@ -223,6 +223,10 @@ class HeroClassID : public Identifier<HeroClassID>
{
public:
using Identifier<HeroClassID>::Identifier;
///json serialization helpers
DLL_LINKAGE static si32 decode(const std::string & identifier);
DLL_LINKAGE static std::string encode(const si32 index);
static std::string entityType();
};
class HeroTypeID : public Identifier<HeroTypeID>