This commit is contained in:
nora 2023-04-17 22:03:33 +02:00
parent af7eb4e841
commit a55aedca0c
2 changed files with 2 additions and 9 deletions

View file

@ -3,7 +3,6 @@ use crate::{
debug::{self, DebugState}, debug::{self, DebugState},
game::GameState, game::GameState,
res::Res, res::Res,
CliArgs,
}; };
use egui_sfml::SfEgui; use egui_sfml::SfEgui;
/// Application level state (includes game and ui state, etc.) /// Application level state (includes game and ui state, etc.)
@ -17,7 +16,7 @@ pub(crate) struct App {
pub(crate) cmdvec: CmdVec, pub(crate) cmdvec: CmdVec,
} }
impl App { impl App {
pub(crate) fn new(args: CliArgs) -> anyhow::Result<Self> { pub(crate) fn new() -> anyhow::Result<Self> {
loop {} loop {}
} }
pub(crate) fn do_game_loop(&mut self) { pub(crate) fn do_game_loop(&mut self) {

View file

@ -9,14 +9,8 @@ mod texture_atlas;
mod tiles; mod tiles;
mod world; mod world;
use app::App; use app::App;
use clap::Parser;
#[derive(Parser)]
pub(crate) struct CliArgs {}
fn main() { fn main() {
gamedebug_core::set_enabled(true); let mut app = App::new().unwrap();
let cli_args = CliArgs::parse();
let mut app = App::new(cli_args).unwrap();
app.do_game_loop(); app.do_game_loop();
} }