summaryrefslogtreecommitdiffstats
path: root/source/cSurvivalInventory.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:54:57 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:54:57 +0200
commit18b04ab93f31e4701351dc35f847f2763d75c5e0 (patch)
tree577ee0332b3ae8778443dc6af4ee0f24c7ca1011 /source/cSurvivalInventory.h
parentUpdated Bindings to match the new armor categories and torch metas (diff)
downloadcuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.gz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.bz2
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.lz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.xz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.zst
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.zip
Diffstat (limited to 'source/cSurvivalInventory.h')
-rw-r--r--source/cSurvivalInventory.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/source/cSurvivalInventory.h b/source/cSurvivalInventory.h
index 2061de2b0..cdab62e93 100644
--- a/source/cSurvivalInventory.h
+++ b/source/cSurvivalInventory.h
@@ -10,11 +10,37 @@
class cSurvivalInventory //tolua_export
: public cInventory
{ //tolua_export
+
+ enum
+ {
+ SLOT_CRAFTING_RESULT = 0,
+ SLOT_CRAFTING_MIN = 1,
+ SLOT_CRAFTING_MAX = 4,
+ SLOT_ARMOR_MIN = 5,
+ SLOT_ARMOR_HELMET = 5,
+ SLOT_ARMOR_CHESTPLATE = 6,
+ SLOT_ARMOR_LEGGINGS = 7,
+ SLOT_ARMOR_BOOTS = 8,
+ SLOT_ARMOR_MAX = 8,
+ SLOT_INVENTORY_MIN = 9,
+ SLOT_INVENTORY_MAX = 35,
+ SLOT_HOTBAR_MIN = 36,
+ SLOT_HOTBAR_MAX = 44,
+ } ;
+
+ void ShiftClickedCraftingResult(short a_Slot);
+ void ShiftClickedCraftingGrid (short a_Slot);
+ void ShiftClickedArmor (short a_Slot);
+ void ShiftClickedHotbar (short a_Slot);
+ void ShiftClickedInventory (short a_Slot);
+
public:
cSurvivalInventory(cPlayer* a_Owner);
~cSurvivalInventory();
- virtual void Clicked( cPacket* a_ClickPacket );
+ virtual void Clicked(cPacket * a_ClickPacket) override;
+
+ void ShiftClicked(cPacket_WindowClick * a_ClickPacket);
}; //tolua_export