[][src]Crate rask_wasm

 This crate contains two applications:

      _________________
     |  main.js [0]    |
     |-----------------|
     | websockets      |
     | user input      |
     |_________________|
         |           A
         |           |
         | Message   | Post Message     [offscreen canvas] [7]
         |  Queue[4] | [5]                      A
         V           |                          | draw()
      _________________                  _________________
     |  logic [1]      |                |  graphics [3]   |
     |---------------- | "double buffer"|-----------------|
     | input handling  |--------------->| manage textures |
     | game engine     |     [6]        | call webgl      |
     |_________________|                |_________________|


 logic and graphics communicate via the shared array buffer
 for more information see `communication` [4],[5],[6]

 Memory layout
 our Project uses a custom memory layout. see `mem`

Modules

communication
entries

This module contains the entry points callable from JavaScript.

error

Collection of frontend errors. These can result from network errors, other JavaScript errors or concurrency errors.

graphics
logic

The GameContext contains the logic state and game engine. Its main purpose is to handle events and execute the game engine.

mem

This module abstracts some of the raw memory interaction and calculates the offsets of shared memory constructs.

wasm_log

Enums

ClientError