blob: 14272d9cdf855c9fa5bb957a19b3acc2943edee2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use wasm_bindgen::prelude::*;
use log::*;
use crate::*;
#[wasm_bindgen]
pub fn start_logic() {
logger::init_logger();
info!("logic: wasm entry-point reached");
match context::logic::LogicContext::new() {
Ok(ctx) => context::set_logic(ctx),
Err(e) => error!("logic {}", e)
}
}
#[wasm_bindgen]
pub fn loop_logic() {
debug!("logic: loopin'");
}
|