2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cInventory.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cSurvivalInventory //tolua_export
|
|
|
|
: public cInventory
|
|
|
|
{ //tolua_export
|
2012-08-11 15:54:57 -04:00
|
|
|
|
|
|
|
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,
|
|
|
|
} ;
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
void ShiftClickedCraftingResult(short a_SlotNum);
|
|
|
|
void ShiftClickedCraftingGrid (short a_SlotNum);
|
2012-08-11 15:54:57 -04:00
|
|
|
void ShiftClickedArmor (short a_Slot);
|
|
|
|
void ShiftClickedHotbar (short a_Slot);
|
|
|
|
void ShiftClickedInventory (short a_Slot);
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
public:
|
|
|
|
cSurvivalInventory(cPlayer* a_Owner);
|
|
|
|
~cSurvivalInventory();
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
virtual void Clicked(short a_SlotNum, bool a_IsRightClick, bool a_IsShiftPressed, const cItem & a_HeldItem) override;
|
2012-08-11 15:54:57 -04:00
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
void ShiftClicked(short a_SlotNum);
|
2012-06-14 09:06:06 -04:00
|
|
|
}; //tolua_export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|