From d6b30dd3a5df4b84a287305f807442064f4cf68d Mon Sep 17 00:00:00 2001 From: Kahrl Date: Tue, 29 Nov 2011 17:15:18 +0200 Subject: CraftItem rework and Lua interface --- src/server.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/server.h') 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 */ -- cgit v1.2.3