]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Inventory.h
added Sort function to Inventory
[l2e.git] / src / common / Inventory.h
index f60b9abecb49e71817e5c3fe7a4b74fe3d011f3d..f80368c5ca6c1666b8ba2c9f9405ec17117d585c 100644 (file)
@@ -28,11 +28,14 @@ public:
        const Item *ItemAt(int offset) const { return entries[offset].item; }
        int ItemCountAt(int offset) const { return entries[offset].count; }
 
+       void Sort();
+
 private:
        struct Entry {
                Entry() : item(0), count(0) { }
                const Item *item;
                Uint8 count;
+               static bool Less(const Entry &, const Entry &);
        };
 
 private: