diff options
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index 673458882..98c4f65d6 100644 --- a/src/server.h +++ b/src/server.h @@ -36,6 +36,7 @@ typedef struct lua_State lua_State; class IWritableToolDefManager; class IWritableNodeDefManager; class IWritableCraftDefManager; +class IWritableCraftItemDefManager; /* Some random functions @@ -495,12 +496,14 @@ public: virtual IToolDefManager* getToolDefManager(); virtual INodeDefManager* getNodeDefManager(); virtual ICraftDefManager* getCraftDefManager(); + virtual ICraftItemDefManager* getCraftItemDefManager(); virtual ITextureSource* getTextureSource(); virtual u16 allocateUnknownNodeId(const std::string &name); IWritableToolDefManager* getWritableToolDefManager(); IWritableNodeDefManager* getWritableNodeDefManager(); IWritableCraftDefManager* getWritableCraftDefManager(); + IWritableCraftItemDefManager* getWritableCraftItemDefManager(); private: @@ -523,6 +526,8 @@ private: IToolDefManager *tooldef); static void SendNodeDef(con::Connection &con, u16 peer_id, INodeDefManager *nodedef); + static void SendCraftItemDef(con::Connection &con, u16 peer_id, + ICraftItemDefManager *nodedef); /* Non-static send methods. @@ -644,6 +649,9 @@ private: // Craft definition manager IWritableCraftDefManager *m_craftdef; + // CraftItem definition manager + IWritableCraftItemDefManager *m_craftitemdef; + /* Threads */ |