summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/src/lib.rs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-06-01 01:48:30 +0200
committernatrixaeria <janng@gmx.de>2019-06-01 01:48:30 +0200
commite052a0da267ac8594f3b896573a204a739340e54 (patch)
treeb652113383173d9be6277c7dae4a902f44edda1f /WebInterface/wasm/webhogg/src/lib.rs
parent205402f5f2b26b92fb40769ad25046c5baa7bcca (diff)
Create multithreading through web workers
Diffstat (limited to 'WebInterface/wasm/webhogg/src/lib.rs')
-rw-r--r--WebInterface/wasm/webhogg/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebInterface/wasm/webhogg/src/lib.rs b/WebInterface/wasm/webhogg/src/lib.rs
index 4a79a24..5823e72 100644
--- a/WebInterface/wasm/webhogg/src/lib.rs
+++ b/WebInterface/wasm/webhogg/src/lib.rs
@@ -23,10 +23,11 @@ pub fn game_logic_entry(worker: Worker) {
client_logger::init_logger();
info!("game logic initialisation");
+ //worker.post_message(&wasm_bindgen::JsValue::from_str("msg frm wasm_gLe")).unwrap();
}
#[wasm_bindgen]
-pub fn graphics_entry(worker: Worker) {
+pub fn graphics_entry() {
client_logger::init_logger();
info!("graphics initialisation");