diff options
Diffstat (limited to 'source/game/StarItemDatabase.hpp')
-rw-r--r-- | source/game/StarItemDatabase.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/game/StarItemDatabase.hpp b/source/game/StarItemDatabase.hpp index d5b86fc..714eee7 100644 --- a/source/game/StarItemDatabase.hpp +++ b/source/game/StarItemDatabase.hpp @@ -110,6 +110,9 @@ public: // of the unique item data or may be ignored. ItemConfig itemConfig(String const& itemName, Json parameters, Maybe<float> level = {}, Maybe<uint64_t> seed = {}) const; + // Returns the path to the item's json file in the assets. + Maybe<String> itemFile(String const& itemName) const; + // Generates the config for the given item descriptor and then loads the item // from the appropriate factory. If there is a problem instantiating the // item, will return a default item instead. If item is passed a null @@ -212,4 +215,4 @@ bool ItemDatabase::diskLoad(Json const& diskStore, shared_ptr<ItemT>& itemPtr) c return false; } } -} +}
\ No newline at end of file |