diff options
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 385f32ee6..71b88d192 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -343,11 +343,16 @@ void ItemDB::load() mLoaded = true; } -std::vector<std::string> &ItemDB::getTags() +const std::vector<std::string> &ItemDB::getTags() { return mTagNames; } +int ItemDB::getTagId(std::string tagName) +{ + return mTags[tagName]; +} + void ItemDB::unload() { logger->log1("Unloading item database..."); |