diff options
author | Kahrl <kahrl@gmx.net> | 2012-01-22 00:49:02 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-22 17:31:20 +0200 |
commit | b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2 (patch) | |
tree | b47e57a55e6a2787464e49ffe172592b956c5a96 /src/inventorymanager.h | |
parent | 1efdc36b22532807d21a0beac94524e3eacfe7bc (diff) | |
download | minetest-b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2.tar.gz minetest-b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2.tar.bz2 minetest-b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2.zip |
Client-side prediction of inventory changes, and some inventory menu fixes
Diffstat (limited to 'src/inventorymanager.h')
-rw-r--r-- | src/inventorymanager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inventorymanager.h b/src/inventorymanager.h index 890d05168..55e8f8402 100644 --- a/src/inventorymanager.h +++ b/src/inventorymanager.h @@ -102,6 +102,7 @@ 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; }; struct IMoveAction : public InventoryAction @@ -142,6 +143,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 +178,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 +208,8 @@ struct ICraftAction : public InventoryAction } void apply(InventoryManager *mgr, ServerActiveObject *player, IGameDef *gamedef); + + void clientApply(InventoryManager *mgr, IGameDef *gamedef); }; // Crafting helper |