2023-04-01 14:02:42 +00:00
|
|
|
use crate::prelude::*;
|
2023-04-01 05:52:41 +00:00
|
|
|
use sp_runtime_interface::runtime_interface;
|
|
|
|
|
|
|
|
#[runtime_interface]
|
|
|
|
pub trait Api {
|
2023-04-01 14:02:42 +00:00
|
|
|
fn say(msg: &str) {
|
|
|
|
unreachable!()
|
2023-04-01 05:52:41 +00:00
|
|
|
}
|
2023-04-01 14:02:42 +00:00
|
|
|
fn walk(
|
|
|
|
sim_id: SimId,
|
|
|
|
entity_id: EntityId,
|
|
|
|
direction: Direction,
|
|
|
|
) -> Result<Result<Position, (Position, WalkError)>, SimError> {
|
|
|
|
unreachable!()
|
|
|
|
}
|
|
|
|
}
|