diff options
author | natrixaeria <janng@gmx.de> | 2019-05-31 14:33:57 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-31 14:33:57 +0200 |
commit | a8908cac9524fabdcf4232c1394a51848f0335af (patch) | |
tree | 965cef267f4d0f08d9971d6e0ba1987dfd7f5ee0 /WebInterface/wasm/webhogg/src/lib.rs | |
parent | b5ec9c693f3abfe36d6d1e4dbf86e084872a4676 (diff) |
Create web workers
Diffstat (limited to 'WebInterface/wasm/webhogg/src/lib.rs')
-rw-r--r-- | WebInterface/wasm/webhogg/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WebInterface/wasm/webhogg/src/lib.rs b/WebInterface/wasm/webhogg/src/lib.rs index 2812ed9..4a79a24 100644 --- a/WebInterface/wasm/webhogg/src/lib.rs +++ b/WebInterface/wasm/webhogg/src/lib.rs @@ -6,6 +6,7 @@ mod app; use wasm_bindgen::prelude::*; use app::WebhoggApplication as App; +use web_sys::Worker; #[macro_use] extern crate log; @@ -18,14 +19,14 @@ fn run_application() { } #[wasm_bindgen] -pub fn game_logic_entry() { +pub fn game_logic_entry(worker: Worker) { client_logger::init_logger(); info!("game logic initialisation"); } #[wasm_bindgen] -pub fn graphics_entry() { +pub fn graphics_entry(worker: Worker) { client_logger::init_logger(); info!("graphics initialisation"); |