1
0
Fork 0
cuberite-2a/src/UI/EnchantingWindow.h

46 lines
719 B
C
Raw Normal View History

2014-12-13 14:06:55 +00:00
// EnchantingWindow.h
// Representing the UI window for the enchanting block
#pragma once
#include "Window.h"
2020-04-13 16:38:06 +00:00
class cEnchantingWindow:
2014-12-13 14:06:55 +00:00
public cWindow
{
2020-04-13 16:38:06 +00:00
using Super = cWindow;
2014-12-13 14:06:55 +00:00
public:
2020-04-13 16:38:06 +00:00
cEnchantingWindow(Vector3i a_BlockPos);
2015-03-10 18:40:53 +00:00
virtual void SetProperty(short a_Property, short a_Value, cPlayer & a_Player) override;
virtual void SetProperty(short a_Property, short a_Value) override;
/** Return the value of a property */
short GetPropertyValue(short a_Property);
virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override;
2014-12-13 14:06:55 +00:00
cSlotArea * m_SlotArea;
protected:
short m_PropertyValue[3];
Vector3i m_BlockPos;
2014-12-13 14:06:55 +00:00
};