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

Extended test coverage, break, unbreak #8

Merged
merged 3 commits into from
Jan 15, 2021

Conversation

MaulingMonkey
Copy link
Contributor

@MaulingMonkey MaulingMonkey commented Oct 5, 2020

I created aseprite-test-data since I might want to write binary deserializers as well, which might warrant a separate crate. This PR integrates that test data and extends aseprite itself to support all the data therein:

  • Added support for --format json-hash (default) while maintaining support for --format json-array
  • Added support for new BlendModes
  • Added support for slices (including slices with pivots and 9-slice centers)
  • Added support for layer groups (these have no opacity or blend_mode set, and add new keys)
  • Added user data support for layers (color + arbitrary strings)

And did some more... miscellanious changes, that might be more objectionable:

  • Un-Option meta.frame_tags in favor of an empty vec
  • Un-Option meta.layers in favor of an empty vec
  • Reduce future semver churning by making many structs/enums non-exhaustive
  • More test coverage

Possible changes you might want, feel free to ask:

  • Revert the Un-Optionifying of things?
  • Rebase atop / merge with PR Added support for layer groups, cels and slices #6 ?
    • Handles groups somewhat differently by turning Layer into an enum
    • It also appears I'm missing Cel data?
  • CI coverage
  • Rename Frametag -> FrameTag since we're in breaking things mode?

- Added support for --format json-hash
- Added support for new BlendMode s
- Added support for slices
- Added support for layer groups
- Added user data support for layers
- Un-Option meta.frame_tags in favor of an empty vec
- Un-Option meta.layers in favor of an empty vec
- Reduce future semver churning by making many structs/enums non-exhaustive
- More test coverage
@icefoxen icefoxen merged commit 043882e into ggez:master Jan 15, 2021
@icefoxen
Copy link
Contributor

Awesome, thanks! Sorry for the delay.

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.

2 participants