pub struct Map { /* private fields */ }
Implementations§
Source§impl Map
impl Map
pub fn add_game_level(&mut self, entities: Vec<Entity>)
pub fn get_current_level(&self) -> &Level
pub fn get_boundry_entities(boundry: Rectangle) -> Vec<Entity>
pub fn add_level(&mut self, level: Level) -> Result<(), &'static str>
pub fn change_level(&mut self, level: Level) -> bool
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
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