Skip to content

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