mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Chests work now!
This commit is contained in:
parent
9e683fff50
commit
4a92df6ff0
17 changed files with 519 additions and 147 deletions
10
src/server.h
10
src/server.h
|
@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "utility.h"
|
||||
#include "porting.h"
|
||||
#include "map.h"
|
||||
#include "inventory.h"
|
||||
|
||||
struct QueuedBlockEmerge
|
||||
{
|
||||
|
@ -342,7 +343,8 @@ private:
|
|||
u32 m_excess_gotblocks;
|
||||
};
|
||||
|
||||
class Server : public con::PeerHandler, public MapEventReceiver
|
||||
class Server : public con::PeerHandler, public MapEventReceiver,
|
||||
public InventoryManager
|
||||
{
|
||||
public:
|
||||
/*
|
||||
|
@ -382,6 +384,12 @@ public:
|
|||
*/
|
||||
void onMapEditEvent(MapEditEvent *event);
|
||||
|
||||
/*
|
||||
Shall be called with the environment and the connection locked.
|
||||
*/
|
||||
Inventory* getInventory(InventoryContext *c, std::string id);
|
||||
void inventoryModified(InventoryContext *c, std::string id);
|
||||
|
||||
private:
|
||||
|
||||
// Virtual methods from con::PeerHandler.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue