aboutsummaryrefslogtreecommitdiff
path: root/pixel-client/src/menu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/src/menu.rs')
-rw-r--r--pixel-client/src/menu.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/pixel-client/src/menu.rs b/pixel-client/src/menu.rs
index 0a05e84c..a3242edb 100644
--- a/pixel-client/src/menu.rs
+++ b/pixel-client/src/menu.rs
@@ -3,10 +3,16 @@ use sdl2::keyboard::KeyboardState;
pub struct Menu {}
+impl Default for Menu {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl Menu {
pub fn new() -> Self {
Self {}
}
- pub fn tick(&mut self, dt: f32, keyboard: &KeyboardState, layout: &AtlasLayout) {}
- pub fn draw(&self, ctx: &mut SpriteRenderer) {}
+ pub fn tick(&mut self, _dt: f32, _keyboard: &KeyboardState, _layout: &AtlasLayout) {}
+ pub fn draw(&self, _ctx: &mut SpriteRenderer) {}
}