Rutherther / NosSmooth

Nostale bot library written in C#. May describe the current state of the game/character from packets. Multiple sources available for capturing the packets from running game.
MIT License
6 stars 3 forks source link

Make nullable packet index for composite types #44

Closed Rutherther closed 1 year ago

Rutherther commented 1 year ago

Composite types are sometimes denoted as "-1" in the packet in case they are missing (CListPacket pets, ScNSkills, ScNWeapons, ...)

There should be a PacketNullableIndex that takes care of this and does not allow to parse the rest of the sub packets.

Rutherther commented 1 year ago

Made by using NullableWrapper instead of custom attribute.