index on main: a2e1522 Expose ecs world view_one and insert to the guest

This commit is contained in:
SeanOMik 2024-11-04 21:33:15 -05:00
parent a2e1522af2
commit 4bf6f37628
6 changed files with 185 additions and 4 deletions

6
Cargo.lock generated
View File

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 4
[[package]] [[package]]
name = "addr2line" name = "addr2line"
@ -718,9 +718,9 @@ dependencies = [
[[package]] [[package]]
name = "glam" name = "glam"
version = "0.24.2" version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945" checksum = "480c9417a5dc586fc0c0cb67891170e59cc11e9dc79ba1c11ddd2c56ca3f3b90"
[[package]] [[package]]
name = "hashbrown" name = "hashbrown"

18
common-api/wit/asset.wit Normal file
View File

@ -0,0 +1,18 @@
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;
}
}

@ -1 +1 @@
Subproject commit 60c139f9b2563b4c2d809031ecac336badc63965 Subproject commit 7ae0eae6ac714d72250149ab6b61a1ac66a5a6a9

3
rust-toolchain.toml Normal file
View File

@ -0,0 +1,3 @@
[toolchain]
channel = "nightly"
#targets = [ "x86_64-unknown-linux-gnu" ]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,18 @@
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;
}
}