28 lines
410 B
Plaintext
28 lines
410 B
Plaintext
namespace example
|
|
|
|
const PROTOCOL: u8 = 0
|
|
const SECRET: u8 = 1
|
|
|
|
enum Motion {
|
|
1# Wave
|
|
2# MoveArm
|
|
}
|
|
|
|
struct Hello {
|
|
const SHAKE: u8 = 20
|
|
|
|
1# name: u8
|
|
}
|
|
|
|
struct Goodbye versioned=false {
|
|
wave: bool = false
|
|
}
|
|
|
|
protocol Greet {
|
|
function smile
|
|
function wave ()
|
|
function wave_wait () -> u8
|
|
function wave_and_go () -> str : timeout_ms=100
|
|
function wave_with (motion: Motion)
|
|
}
|