[][src]Crate wasmdome_mech_sdk

mech-sdk

TBD

Example

extern crate wasmdome_mech_sdk as mech;

use mech::*;

mech_handler!(handler);

// Respond to a request to take a turn
pub fn handler(mech: impl MechInstruments) -> Vec<MechCommand> {
    // Respond with up to 4 action points worth of actions
    vec![
        mech.request_radar(),
        mech.move_mech(GridDirection::North),
        mech.fire_primary(GridDirection::South),
    ]
}

Re-exports

pub extern crate wascc_actor;
pub extern crate wasmdome_protocol as protocol;

Macros

mech_handler

Structs

GameBoard

Represents the dimensions and other metadata for a game board. All game boards have an origin of (0,0) that starts in the bottom left (southwest) corner of the scene.

Point
RadarPing
WasmdomeMechInstruments

Enums

GridDirection
MechCommand

Traits

MechInstruments