Cleanup before network implementation
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
mod transport;
|
||||
mod config;
|
||||
|
||||
use std::sync::Arc;
|
||||
use bevy::prelude::*;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
use crate::config::AppConfig;
|
||||
|
||||
fn main() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(
|
||||
EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")),
|
||||
)
|
||||
.init();
|
||||
|
||||
let config = AppConfig::load("config.toml").expect("Failed to load config");
|
||||
println!("{:?}", config);
|
||||
tracing::info!(?config, "substrate starting");
|
||||
|
||||
App::new()
|
||||
.insert_resource(config)
|
||||
.add_plugins(MinimalPlugins)
|
||||
.add_plugins(transport::ecs::EcsQuicTransportPlugin{})
|
||||
.add_plugins(transport::ecs::EcsQuicTransportPlugin {})
|
||||
.run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user