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
Allow multiple separators in packet deserialization #62
Some packets have multiple separators, such as "sayi2" or "clist". To handle this, there are multiple possibilities. One is to add a string field that will always capture the space and stay empty. That is not a great solution. A better solution would be to add something called "AllowMultipleSeparators" and maybe also "MultipleSeparatorsCount" to index attributes, generators may handle that by moving forward by multiple separators in case there are more of them. In case of serializers, if MultipleSeparatorsCount is set to something, that number of separators will be added.
Some packets have multiple separators, such as "sayi2" or "clist". To handle this, there are multiple possibilities. One is to add a string field that will always capture the space and stay empty. That is not a great solution. A better solution would be to add something called "AllowMultipleSeparators" and maybe also "MultipleSeparatorsCount" to index attributes, generators may handle that by moving forward by multiple separators in case there are more of them. In case of serializers, if MultipleSeparatorsCount is set to something, that number of separators will be added.