Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

python script to generate proto3 definitions#95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
aavaas wants to merge1 commit intoBlizzard:master
base:master
Choose a base branch
Loading
fromaavaas:master

Conversation

@aavaas
Copy link

Related to#44 ; C# protoc only takes proto3 definition files and manually converting on each update is a big hassle. With the converter script, proto2 definition files can be kept as it is as upgrading to proto3 is not planned.

The python script creates a new folder "s2clientprotocol_proto3" and writes all the converted .proto files there. I have also added ignore rule for the "s2clientprotocol_proto3" folder in .gitignore file.

The script is not generic and only for current definition files. It does,

  1. header change
  2. remove optionals
  3. add dummy enum element 0, similar toUpdate to proto3 syntax #44

matthid reacted with hooray emoji
@NikEyX
Copy link

This is very helpful, thanks!

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@aavaas@NikEyX

[8]ページ先頭

©2009-2025 Movatter.jp