Hey guys, i've been trying to figure out the OTCLIENT container structure, i manage to transverse the container map, but i'm having trouble to iterate over a deque of items.
here is how otclient declares a container:
https://github.com/edubart/otclient/...nt/container.h
Code:
struct Container {
int m_id;
int m_capacity;
ItemPtr m_containerItem;
std::string m_name;
bool m_hasParent;
bool m_closed;
bool m_unlocked;
bool m_hasPages;
int m_size;
int m_firstIndex;
std::deque<ItemPtr> m_items;
}
edit:
I have found the deque pointer start, all i need is know how to iterate it properly.
Problem: How a deque estructure looks like in memory? it's a vector of vectors? List of vectors? A map?
Any help?