the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "AbstractContainerMenu.h"
4
5class RepairMenu : public AbstractContainerMenu
6{
7 friend class RepairResultSlot;
8private:
9 static const bool DEBUG_COST = false;
10
11public:
12 static const int INPUT_SLOT = 0;
13 static const int ADDITIONAL_SLOT = 1;
14 static const int RESULT_SLOT = 2;
15
16 static const int INV_SLOT_START = RESULT_SLOT + 1;
17 static const int INV_SLOT_END = INV_SLOT_START + 9 * 3;
18 static const int USE_ROW_SLOT_START = INV_SLOT_END;
19 static const int USE_ROW_SLOT_END = USE_ROW_SLOT_START + 9;
20
21public:
22 static const int DATA_TOTAL_COST = 0;
23
24private:
25 shared_ptr<Container> resultSlots;
26
27 // 4J Stu - anonymous class here now RepairContainer
28 shared_ptr<Container> repairSlots;
29
30 Level *level;
31 int x, y, z;
32
33public:
34 int cost;
35
36private:
37 int repairItemCountCost;
38 wstring itemName;
39 shared_ptr<Player> player;
40
41public:
42 using AbstractContainerMenu::slotsChanged;
43
44 RepairMenu(shared_ptr<Inventory> inventory, Level *level, int xt, int yt, int zt, shared_ptr<Player> player);
45
46 void slotsChanged(shared_ptr<Container> container);
47 void createResult();
48 void sendData(int id, int value);
49 void addSlotListener(ContainerListener *listener);
50 void setData(int id, int value);
51 void removed(shared_ptr<Player> player);
52 bool stillValid(shared_ptr<Player> player);
53 shared_ptr<ItemInstance> quickMoveStack(shared_ptr<Player> player, int slotIndex);
54 void setItemName(const wstring &name);
55};