[][src]Trait amethyst_tiles::MapStorage

pub trait MapStorage<T: Tile> {
    fn get(&self, coord: &Point3<u32>) -> Option<&T>;
fn get_mut(&mut self, coord: &Point3<u32>) -> Option<&mut T>;
fn get_mut_nochange(&mut self, coord: &Point3<u32>) -> Option<&mut T>;
fn get_raw(&self, coord: u32) -> Option<&T>;
fn get_raw_mut(&mut self, coord: u32) -> Option<&mut T>;
fn get_raw_mut_nochange(&mut self, coord: u32) -> Option<&mut T>; }

Generic trait over the underlying storage of a given Map type.

Required methods

fn get(&self, coord: &Point3<u32>) -> Option<&T>

Try to get the Tile type present at the provided coordinates.

fn get_mut(&mut self, coord: &Point3<u32>) -> Option<&mut T>

Try to get a mutable reference to Tile type present at the provided coordinates.

fn get_mut_nochange(&mut self, coord: &Point3<u32>) -> Option<&mut T>

Try to get a mutable reference to Tile type present at the provided coordinates.

fn get_raw(&self, coord: u32) -> Option<&T>

Try to get the Tile type present at the provided coordinates.

fn get_raw_mut(&mut self, coord: u32) -> Option<&mut T>

Try to get a mutable reference to Tile type present at the provided coordinates.

fn get_raw_mut_nochange(&mut self, coord: u32) -> Option<&mut T>

Try to get a mutable reference to Tile type present at the provided coordinates.

Loading content...

Implementors

impl<T: Tile, E: CoordinateEncoder> MapStorage<T> for TileMap<T, E>[src]

Loading content...