1 2 3 4 5 6 7
use sdl2::surface::Surface; pub type TileIndex = usize; pub trait TileProvider { fn get_tile(&self, index: TileIndex) -> Option<&Surface>; }
1 2 3 4 5 6 7
use sdl2::surface::Surface; pub type TileIndex = usize; pub trait TileProvider { fn get_tile(&self, index: TileIndex) -> Option<&Surface>; }