diff options
author | archshift <admin@archshift.com> | 2014-04-25 19:50:10 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-25 19:50:10 +0200 |
commit | d64e46186f21a024da3cedff1a8bab24e8d51b3f (patch) | |
tree | 441377b44418bce1a7d97b5cc2b09135e668aa40 /src/UI/SlotArea.h | |
parent | Small changes; warning fixing. (diff) | |
parent | Merge pull request #937 from archshift/xcode-headers (diff) | |
download | cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.gz cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.bz2 cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.lz cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.xz cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.zst cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/UI/SlotArea.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h index bab1098bb..254722822 100644 --- a/src/UI/SlotArea.h +++ b/src/UI/SlotArea.h @@ -145,8 +145,13 @@ public: { } - // Distributing the stack is allowed only for compatible items (helmets into helmet slot etc.) + /** Distributing the stack is allowed only for compatible items (helmets into helmet slot etc.) */ virtual void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, bool a_ShouldApply, bool a_KeepEmptySlots) override; + + /** Called when a player clicks in the window. Parameters taken from the click packet. */ + virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override; + + bool CanPlaceInSlot(int a_SlotNum, const cItem & a_Item); } ; |