]> git.lizzy.rs Git - minetest.git/blobdiff - src/inventorymanager.h
Create main menu tab "Settings" for client settings
[minetest.git] / src / inventorymanager.h
index 890d05168dd259d53c69859c79b82426a35c7931..52377f9a4425866f594cce766fed2be044ae75f6 100644 (file)
@@ -102,6 +102,8 @@ struct InventoryAction
        virtual void serialize(std::ostream &os) const = 0;
        virtual void apply(InventoryManager *mgr, ServerActiveObject *player,
                        IGameDef *gamedef) = 0;
+       virtual void clientApply(InventoryManager *mgr, IGameDef *gamedef) = 0;
+       virtual ~InventoryAction() {};
 };
 
 struct IMoveAction : public InventoryAction
@@ -142,6 +144,8 @@ struct IMoveAction : public InventoryAction
        }
 
        void apply(InventoryManager *mgr, ServerActiveObject *player, IGameDef *gamedef);
+
+       void clientApply(InventoryManager *mgr, IGameDef *gamedef);
 };
 
 struct IDropAction : public InventoryAction
@@ -175,6 +179,8 @@ struct IDropAction : public InventoryAction
        }
 
        void apply(InventoryManager *mgr, ServerActiveObject *player, IGameDef *gamedef);
+
+       void clientApply(InventoryManager *mgr, IGameDef *gamedef);
 };
 
 struct ICraftAction : public InventoryAction
@@ -203,6 +209,8 @@ struct ICraftAction : public InventoryAction
        }
 
        void apply(InventoryManager *mgr, ServerActiveObject *player, IGameDef *gamedef);
+
+       void clientApply(InventoryManager *mgr, IGameDef *gamedef);
 };
 
 // Crafting helper