chore: initial commit
This commit is contained in:
14
crates/client/src/lib.rs
Normal file
14
crates/client/src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
pub fn add(left: u64, right: u64) -> u64 {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
24
crates/client/src/main.rs
Normal file
24
crates/client/src/main.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
use bevy::prelude::*;
|
||||
use tracing::info;
|
||||
|
||||
fn main() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.init();
|
||||
|
||||
// Start Bevy app
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_systems(Startup, setup)
|
||||
.add_systems(Update, sync_system)
|
||||
.run();
|
||||
}
|
||||
|
||||
fn setup(mut commands: Commands) {
|
||||
commands.spawn(Camera2d);
|
||||
info!("Client started");
|
||||
}
|
||||
|
||||
fn sync_system() {
|
||||
// TODO: Implement gossip sync for client
|
||||
}
|
||||
Reference in New Issue
Block a user