lyra-wasm-scripting-test/witguest/wit/deps/lyraapi/asset.wit

18 lines
442 B
Plaintext
Raw Permalink Normal View History

interface asset {
resource handle {
set-watched: func(watched: bool);
version: func() -> u64;
uuid: func() -> string;
path: func() -> string;
is-watched: func() -> bool;
is-loaded: func() -> bool;
wait-for-load: func();
wait-recurse-dependencies-load: func();
}
resource asset-manager {
constructor();
request: func(path: string) -> handle;
}
}