diff options
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r-- | src/resources/beinginfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index 942644708..e98d48a41 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -327,6 +327,12 @@ class BeingInfo final const std::vector<BeingMenuItem> &getMenu() const A_CONST; + void setString(const int idx, + const std::string &value) + { mStrings[idx] = value; } + + std::string getString(const int idx) const A_WARN_UNUSED; + static void init(); static void clear(); @@ -339,6 +345,7 @@ class BeingInfo final ItemSoundEvents mSounds; Attacks mAttacks; std::vector<BeingMenuItem> mMenu; + std::map<int, std::string> mStrings; unsigned char mBlockWalkMask; BlockTypeT mBlockType; const std::map <ItemColor, ColorDB::ItemColorData> *mColors; |