diff options
author | natrixaeria <janng@gmx.de> | 2019-05-31 05:26:50 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-31 05:26:50 +0200 |
commit | b5ec9c693f3abfe36d6d1e4dbf86e084872a4676 (patch) | |
tree | a6595027e8ee7f97b6d6406cb1cb18e876e437a9 /WebInterface/wasm/webhogg/src | |
parent | 43f14444fa6f4756aaac255e9c1b47b756d0ecd5 (diff) |
Split into two entry points
Diffstat (limited to 'WebInterface/wasm/webhogg/src')
-rw-r--r-- | WebInterface/wasm/webhogg/src/lib.rs | 17 |
1 files changed, 15 insertions, 2 deletions
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"); |