Trait kludgine::tilemap::Layer

source ·
pub trait Layer: Debug + Send + 'static {
    // Required method
    fn render(
        &mut self,
        context: &mut LayerContext<'_, '_, '_>
    ) -> Option<Duration>;

    // Provided method
    fn find_object(&self, _object: ObjectId) -> Option<Point<Px>> { ... }
}

Required Methods§

source

fn render(&mut self, context: &mut LayerContext<'_, '_, '_>) -> Option<Duration>

Provided Methods§

source

fn find_object(&self, _object: ObjectId) -> Option<Point<Px>>

Implementors§

source§

impl<O> Layer for ObjectLayer<O>
where O: Object,

source§

impl<Source> Layer for Source
where Source: TileSource,