summaryrefslogtreecommitdiffstats
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-16 17:48:19 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:31 +0100
commit892b9732751b64c2016ba476801e1fe4ed4e750f (patch)
tree99aa40953de5d61e30d47bdf345ee2cb9c3c18e1 /src/Window.hpp
parent2017-09-15 (diff)
downloadAltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.tar
AltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.tar.gz
AltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.tar.bz2
AltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.tar.lz
AltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.tar.xz
AltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.tar.zst
AltCraft-892b9732751b64c2016ba476801e1fe4ed4e750f.zip
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
index 4dae294..a6bccd9 100644
--- a/src/Window.hpp
+++ b/src/Window.hpp
@@ -8,13 +8,17 @@
struct Window {
unsigned char WindowId = 0;
std::string type;
-
+
SlotData handSlot;
+ const short HandSlotId = -1;
std::vector<SlotData> slots;
short actions = 1;
- void MakeClick(short ClickedSlot, bool Lmb);
+ void MakeClick(short ClickedSlot, bool Lmb, bool dropMode = false);
std::queue<PacketClickWindow> pendingTransactions;
+ std::vector<std::pair<short,std::pair<short,short>>> transactions;
+
+ void ConfirmTransaction(PacketConfirmTransactionCB packet);
}; \ No newline at end of file