]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/inventory.h
Workaround failing Travis clang build.
[dragonfireclient.git] / src / inventory.h
index 48ee20e83bccb8d85db973406b3aa071405c1112..5f90183d2302ac6d3e0fe3f8e28065b930e94468 100644 (file)
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <sstream>
 #include <string>
 #include <vector>
-#include "common_irrlicht.h"
+#include "irrlichttypes_bloated.h"
 #include "debug.h"
 #include "itemdef.h"
 
@@ -176,6 +176,7 @@ class InventoryList
        ~InventoryList();
        void clearItems();
        void setSize(u32 newsize);
+       void setWidth(u32 newWidth);
        void setName(const std::string &name);
        void serialize(std::ostream &os) const;
        void deSerialize(std::istream &is);
@@ -185,6 +186,7 @@ class InventoryList
 
        const std::string &getName() const;
        u32 getSize() const;
+       u32 getWidth() const;
        // Count used slots
        u32 getUsedSlots() const;
        u32 getFreeSlots() const;
@@ -240,7 +242,7 @@ class InventoryList
 
 private:
        std::vector<ItemStack> m_items;
-       u32 m_size;
+       u32 m_size, m_width;
        std::string m_name;
        IItemDefManager *m_itemdef;
 };