Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline encoding stuff #181

Merged
merged 3 commits into from
Feb 13, 2021
Merged

Inline encoding stuff #181

merged 3 commits into from
Feb 13, 2021

Conversation

tfausak
Copy link
Owner

@tfausak tfausak commented Feb 11, 2021

A while ago (#58) I split up modules into types, decoders, and encoders. Since then I've come to dislike this style. It makes it very hard to figure out exactly how a type is converted to and from binary and JSON without going to many different files.

One good thing to come out of that old PR was pushing JSON definitions closer to the types, rather than having one module that defines all the JSON instances. I'm going to keep that.

My goal for this PR is to completely remove the Rattletrap.Decode.* and Rattletrap.Encode.* modules, with the possible exception of *.Common.

@tfausak
Copy link
Owner Author

tfausak commented Feb 11, 2021

My goal for this PR is to completely remove the Rattletrap.Decode.* and Rattletrap.Encode.* modules

Actually just the Rattletrap.Encode.* modules for this PR. Moving the decoding stuff will come later.

@tfausak tfausak mentioned this pull request Feb 12, 2021
@tfausak
Copy link
Owner Author

tfausak commented Feb 13, 2021

+1,057 −1,863

Nice.

@tfausak tfausak marked this pull request as ready for review February 13, 2021 00:22
@tfausak tfausak merged commit e22ebd2 into main Feb 13, 2021
@tfausak tfausak deleted the inline-encode branch February 13, 2021 01:57
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