virtual void OpenedByPlayer(cPlayer &a_Player) override
virtual bool ClosedByPlayer(cPlayer &a_Player, bool a_CanRefuse) override
Called when a player closes this window; notifies all slot areas.
cChestWindow(cChestEntity *a_Chest)
cChestEntity * m_PrimaryChest
cChestEntity * m_SecondaryChest
virtual void DistributeStack(cItem &a_ItemStack, int a_Slot, cPlayer &a_Player, cSlotArea *a_ClickedArea, bool a_ShouldApply) override
Called on shift-clicking to distribute the stack into other areas; Modifies a_ItemStack as it is dist...
virtual ~cChestWindow() override
cWindow(WindowType a_WindowType, const AString &a_WindowTitle)