-
Notifications
You must be signed in to change notification settings - Fork 107
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
More convenient way to load embedded maps #266
Comments
In the bevy_ecs_tilemap crate, somebody introduced a |
Huh, I guess I should've gone to the main branch before posting this. That along with what's in #265 is a good enough solution to me. I still don't see why the helper method had to go, but at least there's a reasonable alternative. Thanks! |
|
Personally, it wouldn't do much good unless it would support supplying another |
Yeah, that's something
What do you mean by this? I don't understand. Now that I think about it, we could implement let mut loader = Loader::with_cache_and_reader(
DefaultResourceCache,
|path| { if path == "my-map.tmx" { Ok(that_map) } else { Err(MapLoadingError) }
); What do you think about this? |
I was just explaining why I wouldn't use it. It's not important. What's important is your last suggestion which is actually pretty cool! That I would definitely use! |
Thanks :) I'll try to PR it whenever possible. I'm currently really busy with exams so it probably won't be done until ~2weeks from now. |
This has been merged for a while now, so we can safely close this issue. |
Hi! I'm trying out Bevy and (similar Amethyst) it passes a
&[u8]
to load the file. As of version 0.11, I have no idea how can load maps as implementingResourceReader
for loading from byte arrays would have to be intricate to then be able to load the remaining files from disk.Is there any chance to add back this super useful method? If not, how can I load the main tmx from bytes and the rest of the files using
FilesystemResourceReader
?The text was updated successfully, but these errors were encountered: