refactor for server

This commit is contained in:
2025-11-11 14:34:42 -05:00
parent 0ff6756713
commit d72a070a73
10 changed files with 17 additions and 5 deletions

5
src/bin/client.rs Normal file
View File

@@ -0,0 +1,5 @@
use openworm::client::App;
fn main() {
App::run();
}

5
src/bin/server.rs Normal file
View File

@@ -0,0 +1,5 @@
use openworm::server::run_server;
fn main() {
run_server();
}

View File

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@@ -1,6 +1,6 @@
use std::sync::Arc;
use app::App;
pub use app::App;
use arboard::Clipboard;
use input::Input;
use render::Renderer;
@@ -11,10 +11,6 @@ mod app;
mod input;
mod render;
pub fn main() {
App::run();
}
pub struct Client {
renderer: Renderer,
input: Input,

2
src/lib.rs Normal file
View File

@@ -0,0 +1,2 @@
pub mod client;
pub mod server;

3
src/server/mod.rs Normal file
View File

@@ -0,0 +1,3 @@
pub fn run_server() {
println!("hello world!")
}