Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package component:go;

/// An example world for the component to target.
world example {
    use wasvy:ecs/app.{commands, query};

    /// An example system
    export spin-cube: func(query: query);

    /// Another system
    export my-system: func(commands: commands, query: query);

    /// This is important.
    /// This makes it so the WASM module must implement the guest required functions by the Bevy host.
    include wasvy:ecs/guest;
}