Skip to content

Protocol generator#9

Draft
vaIgarashi wants to merge 22 commits intomasterfrom
generator
Draft

Protocol generator#9
vaIgarashi wants to merge 22 commits intomasterfrom
generator

Conversation

@vaIgarashi
Copy link
Member

@vaIgarashi vaIgarashi commented Feb 6, 2021

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant