init
This commit is contained in:
commit
f978b8af17
21 changed files with 4015 additions and 0 deletions
30
src/server.rs
Normal file
30
src/server.rs
Normal file
|
@ -0,0 +1,30 @@
|
|||
#![allow(dead_code)]
|
||||
#![allow(unstable_name_collisions)]
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use bevy::{app::ScheduleRunnerPlugin, prelude::*, time::TimePlugin};
|
||||
use lib_server::{
|
||||
display::DisplayPlugin, map, metrics::MetricsPlugin, net::NetPlugin, physics::PhysicsPlugin, player::PlayerPlugin,
|
||||
};
|
||||
|
||||
mod common;
|
||||
mod lib_server;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
// Core.
|
||||
.add_plugins(ScheduleRunnerPlugin::run_loop(Duration::from_millis(50)))
|
||||
.add_plugins(TimePlugin)
|
||||
// World.
|
||||
.add_plugins(PhysicsPlugin)
|
||||
.add_plugins(DisplayPlugin)
|
||||
.add_plugins(NetPlugin)
|
||||
// Content.
|
||||
.add_plugins(PlayerPlugin)
|
||||
// Debug.
|
||||
.add_plugins(MetricsPlugin)
|
||||
// Startup.
|
||||
.add_systems(Startup, map::spawn_debug_map)
|
||||
.run();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue