diff options
author | natrixaeria <janng@gmx.de> | 2019-06-13 00:38:21 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-06-13 00:38:21 +0200 |
commit | c3fdf122bd874bd0aedf90eff0d57cc440fc6421 (patch) | |
tree | 0220c9961cd37a58d4398741aec32e6619379bbc /webhogg/wasm/src/lib.rs | |
parent | 1b6a2835e57a7d399f43ecf493060e68042f9af8 (diff) |
Split code into graphics and logic loop
Diffstat (limited to 'webhogg/wasm/src/lib.rs')
-rw-r--r-- | webhogg/wasm/src/lib.rs | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/webhogg/wasm/src/lib.rs b/webhogg/wasm/src/lib.rs index bed779b..7aa4e86 100644 --- a/webhogg/wasm/src/lib.rs +++ b/webhogg/wasm/src/lib.rs @@ -1,16 +1,9 @@ -use wasm_bindgen::prelude::*; -use log::*; - mod logger; +pub mod error; +pub mod context; -#[wasm_bindgen] -pub fn start_graphics() { - logger::init_logger(); - info!("hello from wasm graphics"); -} +pub mod logic; +pub mod graphics; -#[wasm_bindgen] -pub fn start_logic() { - logger::init_logger(); - debug!("hello from wasm logic"); -} +pub use logic::*; +pub use graphics::*; |