Struct let_engine::Resources
source · pub struct Resources {
pub textures: HashMap<String, Arc<Vec<u8>>>,
pub fonts: HashMap<String, Arc<Font<'static>>>,
pub sounds: HashMap<String, Arc<Vec<u8>>>,
}
Expand description
Resources takes hold of all the resources into a HashMap filled with Arcs. Before creating a game object with a game object builder you can make a Resources struct. If you don’t do that you won’t be able to use textures, sounds and fonts.
Fields§
§textures: HashMap<String, Arc<Vec<u8>>>
§fonts: HashMap<String, Arc<Font<'static>>>
§sounds: HashMap<String, Arc<Vec<u8>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more