refactor for server
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
use openworm::client::App;
|
||||
|
||||
fn main() {
|
||||
App::run();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
use openworm::server::run_server;
|
||||
|
||||
fn main() {
|
||||
run_server();
|
||||
}
|
||||
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
@@ -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,
|
||||
@@ -0,0 +1,2 @@
|
||||
pub mod client;
|
||||
pub mod server;
|
||||
@@ -0,0 +1,3 @@
|
||||
pub fn run_server() {
|
||||
println!("hello world!")
|
||||
}
|
||||
Reference in New Issue
Block a user