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

Add improved file loading API (feedback wanted) #92

Open
fallahn opened this issue Apr 25, 2021 · 0 comments
Open

Add improved file loading API (feedback wanted) #92

fallahn opened this issue Apr 25, 2021 · 0 comments

Comments

@fallahn
Copy link
Owner

fallahn commented Apr 25, 2021

By default tmxlite uses fstream to open tmx files. As noted in #76 this does not work on android, the current work-around being loading the entire file into a string and passing to Map::loadFromString().

In #80 it is also noted that there is currently no support for zstd compressed maps as this requires including external dependencies.

The idea then is to create an API for tmxlite which allows a user to define a file loading mechanism of their choice. tmxlite itself could include file loading functions for android, for example, as well as optional file loaders for zstd and other potential sources such as PhysFS.

If anyone has any feedback on this idea, or ideas for API design, please comment! The current thinking would be similar to that of SFML's InputStream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant