2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Slot.h"
|
|
|
|
|
|
|
|
|
|
class RepairMenu;
|
|
|
|
|
|
|
|
|
|
class RepairResultSlot : public Slot
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
RepairMenu *m_menu;
|
|
|
|
|
int xt, yt, zt;
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-02 15:58:20 +07:00
|
|
|
RepairResultSlot(RepairMenu *menu, int xt, int yt, int zt, std::shared_ptr<Container> container, int slot, int x, int y);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
2026-03-02 15:58:20 +07:00
|
|
|
bool mayPlace(std::shared_ptr<ItemInstance> item);
|
|
|
|
|
bool mayPickup(std::shared_ptr<Player> player);
|
|
|
|
|
void onTake(std::shared_ptr<Player> player, std::shared_ptr<ItemInstance> carried);
|
|
|
|
|
virtual bool mayCombine(std::shared_ptr<ItemInstance> item); // 4J Added
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|