lyra-wasm-scripting-test/witguest/wit/world.wit

18 lines
287 B
Plaintext

package component:witguest;
interface math {
record vec3 {
x: f32,
y: f32,
z: f32,
}
}
/// An example world for the component to target.
world example {
import math;
import host-print: func(msg: string);
export on-init: func() -> result;
}