networking shell

This commit is contained in:
Mitchell Marino 2026-02-02 15:31:39 -06:00
parent e09b7d2537
commit dbb87c3930
7 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,11 @@ name = "time_travel"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[features]
client = []
server = []
[dependencies] [dependencies]
avian2d = "0.5.0" avian2d = "0.5.0"
bevy = "0.18.0" bevy = "0.18.0"

View File

@ -7,6 +7,7 @@ use avian2d::{
use bevy::{camera::ScalingMode, color::palettes::css::GREEN, prelude::*}; use bevy::{camera::ScalingMode, color::palettes::css::GREEN, prelude::*};
pub mod avian; pub mod avian;
pub mod net;
fn main() { fn main() {
App::new() App::new()

0
src/net/client.rs Normal file
View File

6
src/net/mod.rs Normal file
View File

@ -0,0 +1,6 @@
#[cfg(feature = "client")]
pub mod client;
pub mod protocol;
#[cfg(feature = "server")]
pub mod server;
pub mod shared;

0
src/net/protocol.rs Normal file
View File

0
src/net/server.rs Normal file
View File

1
src/net/shared.rs Normal file
View File

@ -0,0 +1 @@