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

[WIP] Fit json loader into resource container protocol #102

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Kazuo256
Copy link
Member

@Kazuo256 Kazuo256 commented Aug 20, 2017

This PR is not ready to merge yet.

We need to:

  1. Define a ResourceLoader<T> class which is to be overloaded for the appropriate types
  2. Change the default constructor of ResourceContainer<T> to delegate resource loading to the corresponding ResourceLoader<T>
  3. Find a place to define ResourceLoader<SpriteAnimationTable> while moving action/json2spriteanimation.h out of the public API.

This way, the default loader for animation tables becomes the JSON loader, but the developer can still pass their own loader to ResourceLoader.

@Kazuo256 Kazuo256 changed the title [WIPMake json loader match resource container protocol [WIP] Fit json loader into resource container protocol Aug 20, 2017
@Kazuo256 Kazuo256 added this to the Release v0.5.0 milestone Aug 21, 2017
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