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) -> Option> { std::fs::read(format!("src/textures/{}", local_path.into())).ok() } }