bot4dofus / Datafus

📚🥚 The Dofus database and socket events in JSON files. Includes the source code and more...
https://discord.gg/kNHsFcbUGp
MIT License
50 stars 13 forks source link

feat(A2): add TypeId<> and TypeIdVector<> #44

Closed ledouxm closed 11 months ago

ledouxm commented 11 months ago

This PR aims to fix #29 by adding two new types along with Vector :

"TypeId" means the entity we have to read can be identified by its id that we get reading a short from the buffer "TypeIdVector<Int, BaseEntity>" means the buffer contains a vector with a length encoded in a int, and for every item of the array we have to read a short to get the id of the matching entity.