mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-17 04:45:02 +01:00
manual
This commit is contained in:
parent
820d1079de
commit
69a51ef51a
4 changed files with 4 additions and 22 deletions
16
src/main.rs
16
src/main.rs
|
|
@ -10,21 +10,13 @@ mod tiles;
|
||||||
mod world;
|
mod world;
|
||||||
use app::App;
|
use app::App;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub(crate) struct CliArgs {}
|
pub(crate) struct CliArgs {}
|
||||||
fn try_main() -> anyhow::Result<()> {
|
|
||||||
|
fn main() {
|
||||||
gamedebug_core::set_enabled(true);
|
gamedebug_core::set_enabled(true);
|
||||||
let cli_args = CliArgs::parse();
|
let cli_args = CliArgs::parse();
|
||||||
let mut app = App::new(cli_args)?;
|
let mut app = App::new(cli_args).unwrap();
|
||||||
app.do_game_loop();
|
app.do_game_loop();
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
fn main() {
|
|
||||||
env_logger::builder().filter_level(log::LevelFilter::Info).init();
|
|
||||||
if let Err(e) = try_main() {
|
|
||||||
rfd::MessageDialog::new()
|
|
||||||
.set_title("Fatal error")
|
|
||||||
.set_description(&e.to_string())
|
|
||||||
.show();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
mod reg_chunk_existence;
|
|
||||||
mod serialization;
|
|
||||||
use egui_inspect::derive::Inspect;
|
use egui_inspect::derive::Inspect;
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#[derive(Clone, Copy)]
|
|
||||||
pub(crate) struct ExistenceBitset();
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
use super::{default_chunk_tiles, loc_byte_idx_xy, Chunk, ChunkPos};
|
|
||||||
|
|
||||||
use std::path::Path;
|
|
||||||
pub(super) fn save_chunk(pos: &ChunkPos, chk: &Chunk, world_dir: &Path) {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue