1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! This crate contains the game logic, network connections and input processing.
//! It interacts with the graphics crate through the shared array buffer

#![feature(allocator_api)]
#![feature(type_ascription)]
#![feature(global_allocator)]

use rask_wasm_shared::{
    alloc::{settings::Logic, Allocator, Initial},
    create_allocator, wee_alloc,
};

create_allocator!(
    ALLOCATOR,
    wee_alloc::WeeAlloc<'static>,
    Logic,
    wee_alloc::WeeAlloc::INIT
);

pub mod entries;
pub mod game_context;
pub mod websocket;