From 0d323563e4cc507e58ce1bb3ba632cf2310602c9 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 18 Aug 2013 13:26:37 +0200 Subject: Added cWindow property manipulation API. Now enchantment table and furnace properties can be set by a plugin --- source/ClientHandle.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index dce2bbd25..4372d052c 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1718,15 +1718,6 @@ void cClientHandle::SendHealth(void) -void cClientHandle::SendInventoryProgress(char a_WindowID, short a_ProgressBar, short a_Value) -{ - m_Protocol->SendInventoryProgress(a_WindowID, a_ProgressBar, a_Value); -} - - - - - void cClientHandle::SendInventorySlot(char a_WindowID, short a_SlotNum, const cItem & a_Item) { m_Protocol->SendInventorySlot(a_WindowID, a_SlotNum, a_Item); @@ -1954,36 +1945,45 @@ void cClientHandle::SendWeather(eWeather a_Weather) -void cClientHandle::SendWindowClose(const cWindow & a_Window) +void cClientHandle::SendWholeInventory(const cInventory & a_Inventory) { - m_Protocol->SendWindowClose(a_Window); + m_Protocol->SendWholeInventory(a_Inventory); } -void cClientHandle::SendWindowOpen(char a_WindowID, char a_WindowType, const AString & a_WindowTitle, char a_NumSlots) +void cClientHandle::SendWholeInventory(const cWindow & a_Window) { - m_Protocol->SendWindowOpen(a_WindowID, a_WindowType, a_WindowTitle, a_NumSlots); + m_Protocol->SendWholeInventory(a_Window); } -void cClientHandle::SendWholeInventory(const cInventory & a_Inventory) +void cClientHandle::SendWindowClose(const cWindow & a_Window) { - m_Protocol->SendWholeInventory(a_Inventory); + m_Protocol->SendWindowClose(a_Window); } -void cClientHandle::SendWholeInventory(const cWindow & a_Window) +void cClientHandle::SendWindowOpen(char a_WindowID, char a_WindowType, const AString & a_WindowTitle, char a_NumSlots) { - m_Protocol->SendWholeInventory(a_Window); + m_Protocol->SendWindowOpen(a_WindowID, a_WindowType, a_WindowTitle, a_NumSlots); +} + + + + + +void cClientHandle::SendWindowProperty(const cWindow & a_Window, int a_Property, int a_Value) +{ + m_Protocol->SendWindowProperty(a_Window, a_Property, a_Value); } -- cgit v1.2.3