From b5ec9c693f3abfe36d6d1e4dbf86e084872a4676 Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Fri, 31 May 2019 05:26:50 +0200 Subject: Split into two entry points --- WebInterface/wasm/webhogg/src/lib.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'WebInterface/wasm/webhogg/src') diff --git a/WebInterface/wasm/webhogg/src/lib.rs b/WebInterface/wasm/webhogg/src/lib.rs index 81a3237..2812ed9 100644 --- a/WebInterface/wasm/webhogg/src/lib.rs +++ b/WebInterface/wasm/webhogg/src/lib.rs @@ -17,8 +17,21 @@ fn run_application() { } } -#[wasm_bindgen(start)] -pub fn entry() { +#[wasm_bindgen] +pub fn game_logic_entry() { + client_logger::init_logger(); + + info!("game logic initialisation"); +} + +#[wasm_bindgen] +pub fn graphics_entry() { + client_logger::init_logger(); + + info!("graphics initialisation"); +} + +pub fn entry2() { client_logger::init_logger(); info!("begin running wasm application"); -- cgit v1.2.3-70-g09d2