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 packet serializer generators work by nesting #63

Open Rutherther opened 1 year ago

Rutherther commented 1 year ago

To avoid duplication in packet generation, some kind of nesting packet index capabilities should be supported.

For example, every packet index may contain "IsOptional" and that is handled the same way for every packet index type.

Conditional may use normal, but behind a condition. (the problem is mainly in variable declaration)

ContextList may use List, but set max number of tokens

Greedy index may use normal index, but set read to last first.