micro_ldtk 0.17.1

Load data from LDTK, index it and make it accessible through Bevy assets, extract and use autotile rules
Documentation
1
2
3
4
5
6
7
8
9
10
11
use bevy_asset::Handle;
use bevy_image::{Image, TextureAtlasLayout};

pub trait SuppliesTextureAtlas {
	fn get_atlas_handle(&self, name: impl ToString) -> Option<&Handle<TextureAtlasLayout>>;
	fn get_atlas(&self, name: &Handle<TextureAtlasLayout>) -> Option<&TextureAtlasLayout>;
}
pub trait SuppliesImage {
	fn get_image_handle(&self, name: impl ToString) -> Option<&Handle<Image>>;
	fn get_image(&self, handle: &Handle<Image>) -> Option<&Image>;
}