use bevy_ecs::system::Resource;
#[derive(Resource)]
pub struct Assets {
}
impl Assets {
pub fn new() -> Self {
Assets { }
}
pub fn get(&self, local_path: impl Into<String>) -> Option<Vec<u8>> {
std::fs::read(format!("src/textures/{}", local_path.into())).ok()
}
}