parent
892c7eb57f
commit
c53406f0d4
@ -170,3 +170,18 @@ void cChestEntity::OpenNewWindow(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
|
||||||
|
{
|
||||||
|
super::OnSlotChanged(a_Grid, a_SlotNum);
|
||||||
|
|
||||||
|
cWindow * Window = GetWindow();
|
||||||
|
if (Window != NULL)
|
||||||
|
{
|
||||||
|
Window->BroadcastWholeWindow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ public:
|
|||||||
virtual void SaveToJson(Json::Value & a_Value) override;
|
virtual void SaveToJson(Json::Value & a_Value) override;
|
||||||
virtual void SendTo(cClientHandle & a_Client) override;
|
virtual void SendTo(cClientHandle & a_Client) override;
|
||||||
virtual void UsedBy(cPlayer * a_Player) override;
|
virtual void UsedBy(cPlayer * a_Player) override;
|
||||||
|
virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum) override;
|
||||||
|
|
||||||
/// Opens a new chest window for this chest. Scans for neighbors to open a double chest window, if appropriate.
|
/// Opens a new chest window for this chest. Scans for neighbors to open a double chest window, if appropriate.
|
||||||
void OpenNewWindow(void);
|
void OpenNewWindow(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user