minecraft-protocol icon indicating copy to clipboard operation
minecraft-protocol copied to clipboard

Protocol generator

Open vaIgarashi opened this issue 5 years ago • 1 comments

Motivation

There are over 150 packets in Minecraft. The main disappointment in completing this crate is the implementation of game state packets . Things are getting much worse if we want to support multiple versions of Minecraft. To improve this process we are inroducing packets generation.

Implementation details

  • Backend - Parses minecraft-data from json to structures.
  • Frontend - Generates rust files.
  • Transformers - Transforms backend data to frontend data.
  • Mappings - Special mappings to rename packets and change fields type to custom.
  • Templates - Helper templates for code generation.

vaIgarashi avatar Feb 06 '21 20:02 vaIgarashi

After writing this draft i realized that we should implement thing differently. I have implemented protodef parser as separate crate. Currently i am working on packet derive to add missing features. I hope this big milestone soon will be done

vaIgarashi avatar Sep 13 '21 20:09 vaIgarashi