[][src]Struct tiny_rpg::maps::Map

pub struct Map { /* fields omitted */ }

Methods

impl Map[src]

pub fn my_map() -> Map[src]

impl Map[src]

pub fn add_game_level(&mut self, entities: Vec<Entity>)[src]

pub fn get_current_level(&self) -> &Level[src]

pub fn get_boundry_entities(boundry: Rectangle) -> Vec<Entity>[src]

pub fn add_level(&mut self, level: Level) -> Result<(), &'static str>[src]

pub fn change_level(&mut self, level: Level) -> bool[src]

Auto Trait Implementations

impl Sync for Map

impl Send for Map

impl Unpin for Map

impl RefUnwindSafe for Map

impl UnwindSafe for Map

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]