#![allow(warnings)] mod data; mod gens; mod io; mod map; mod stats; mod wire; use ggez::{ self, conf, event::{self, EventHandler}, Context, ContextBuilder, GameResult, }; struct GameState; impl EventHandler for GameState { fn update(&mut self, _: &mut Context) -> GameResult { Ok(()) } fn draw(&mut self, _: &mut Context) -> GameResult { Ok(()) } } fn main() -> GameResult { let cb = ContextBuilder::new("RstNode", "Katharina Fey") .window_setup(conf::WindowSetup::default().title("RstNode").vsync(true)) .window_mode(conf::WindowMode::default().dimensions(800.0, 600.0)); let (ctx, el) = &mut cb.build()?; let mut game = GameState; // smash the state event::run(ctx, el, &mut game) }