diff options
Diffstat (limited to '')
-rw-r--r-- | src/UI/SlotArea.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h index d363a72e6..acf8c404b 100644 --- a/src/UI/SlotArea.h +++ b/src/UI/SlotArea.h @@ -397,14 +397,20 @@ public: virtual void OnPlayerAdded (cPlayer & a_Player) override; virtual void OnPlayerRemoved(cPlayer & a_Player) override; - /* Get the count of bookshelves who stand in the near of the enchanting table */ - int GetBookshelvesCount(cWorld & a_World); + /* Get the number of bookshelves which are near the enchanting table */ + unsigned GetBookshelvesCount(cWorld & a_World); + + /* Return the enchanted item matching the chosen option (0, 1, 2) + Ownership of the cItem is transferred to the caller. */ + cItem SelectEnchantedOption(size_t a_EnchantOption); protected: + /** Handles a click in the item slot. */ void UpdateResult(cPlayer & a_Player); Vector3i m_BlockPos; + std::array<cItem, 3> m_EnchantedItemOptions; }; |