From 21068011c6d8a4794eec86794d6b9612a265f03a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 2 Oct 2020 14:22:17 +0100 Subject: Remove SetProperty(...cPlayer) Enchantment table, anvil windows are already opened one per-player. --- src/UI/EnchantingWindow.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/UI/EnchantingWindow.h') diff --git a/src/UI/EnchantingWindow.h b/src/UI/EnchantingWindow.h index 2b32f078a..e166fd1de 100644 --- a/src/UI/EnchantingWindow.h +++ b/src/UI/EnchantingWindow.h @@ -21,7 +21,7 @@ class cSlotAreaEnchanting; -class cEnchantingWindow: +class cEnchantingWindow final : public cWindow { using Super = cWindow; @@ -32,14 +32,10 @@ public: /** Sends enchantment properties to the client. If the property represents a level requirement, stores it for later GetProperty retrieval. */ - virtual void SetProperty(short a_Property, short a_Value, cPlayer & a_Player) override; - - /** Sends enchantment properties to the client. - If the property represents a level requirement, stores it for later GetProperty retrieval. */ - virtual void SetProperty(short a_Property, short a_Value) override; + virtual void SetProperty(size_t a_Property, short a_Value) override; /** Return the level requirement of the given enchantment slot. */ - short GetProperty(short a_Property); + short GetProperty(size_t a_Property); virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override; -- cgit v1.2.3