1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Fixed some problems with crafting and inventory

This commit is contained in:
Perttu Ahola 2011-04-11 21:28:04 +03:00
parent 81ac026e1f
commit 249c0dc68a
6 changed files with 75 additions and 34 deletions

View file

@ -455,6 +455,9 @@ public:
// Count used slots
u32 getUsedSlots();
u32 getFreeSlots();
/*bool getDirty(){ return m_dirty; }
void setDirty(bool dirty=true){ m_dirty = dirty; }*/
// Get pointer to item
InventoryItem * getItem(u32 i);
@ -490,6 +493,7 @@ private:
core::array<InventoryItem*> m_items;
u32 m_size;
std::string m_name;
//bool m_dirty;
};
class Inventory