From 6a76c226e10e92c3e3339096f07f8ab065e2098b Mon Sep 17 00:00:00 2001 From: Kahrl Date: Thu, 12 Jan 2012 06:10:39 +0100 Subject: The huge item definition and item namespace unification patch (itemdef), see http://c55.me/minetest/wiki/doku.php?id=changes:itemdef --- src/content_sao.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/content_sao.h') diff --git a/src/content_sao.h b/src/content_sao.h index c2bb9c3f5..f0c9cea90 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -40,8 +40,7 @@ private: class ItemSAO : public ServerActiveObject { public: - ItemSAO(ServerEnvironment *env, v3f pos, - const std::string inventorystring); + ItemSAO(ServerEnvironment *env, v3f pos, const std::string itemstring); u8 getType() const {return ACTIVEOBJECT_TYPE_ITEM;} static ServerActiveObject* create(ServerEnvironment *env, v3f pos, @@ -49,11 +48,12 @@ public: void step(float dtime, bool send_recommended); std::string getClientInitializationData(); std::string getStaticData(); - InventoryItem* createInventoryItem(); + ItemStack createItemStack(); void punch(ServerActiveObject *puncher, float time_from_last_punch); float getMinimumSavedMovement(){ return 0.1*BS; } private: - std::string m_inventorystring; + std::string m_itemstring; + bool m_itemstring_changed; v3f m_speed_f; v3f m_last_sent_position; IntervalLimiter m_move_interval; -- cgit v1.2.3