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

18 lines
287 B
Plaintext
Raw Normal View History

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