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

Refactor PixiResourcesLoader #6560

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

4ian
Copy link
Owner

@4ian 4ian commented May 12, 2024

  • Rename loadTextures to reloadResources
  • Remove static methods
  • Don't pass the class but an instance and remove the Class<> typings.
  • Add TypeScript typing.

TODO in another PR:

  • Make getPIXITexture (and others) async. Rework all the on('update') to use a promise instead.
    • Replace getTexture to return a Promise<PIXI.Texture> in TileMapHelper. Ensure runtime and editor are adapted.

@4ian 4ian force-pushed the refactor/pixi-resources-loader branch from 160adfc to 56bcb79 Compare May 12, 2024 18:06
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