1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use sdl2::render::Canvas;
use sdl2::video::Window;
use drawable::{DrawSettings, Drawable, Position, State};
pub struct Empty;
impl Drawable for Empty {
fn content(&self) -> Vec<&dyn Drawable> {
vec![]
}
fn content_mut(&mut self) -> Vec<&mut dyn Drawable> {
vec![]
}
fn step(&mut self) {}
fn state(&self) -> State {
State::Hidden
}
fn draw(&self, _canvas: &mut Canvas<Window>, _position: &Position, _settings: DrawSettings) {}
}