[−][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
RadarPing | |
WasmdomeMechInstruments |
Enums
GridDirection | |
MechCommand |
Traits
MechInstruments |