Skip to content

Commit

Permalink
add id method back to wired-scene resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Jul 5, 2024
1 parent 4aa27eb commit ac7ded9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spatial/wit/wired-scene/world.wit
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ interface material {
resource material {
constructor();

id: func() -> u32;

name: func() -> string;
set-name: func(value: string);

Expand All @@ -31,6 +33,8 @@ interface mesh {
use material.{material};

resource primitive {
id: func() -> u32;

material: func() -> option<material>;
set-material: func(value: option<borrow<material>>);

Expand All @@ -43,6 +47,8 @@ interface mesh {
resource mesh {
constructor();

id: func() -> u32;

name: func() -> string;
set-name: func(value: string);

Expand All @@ -63,6 +69,8 @@ interface node {
resource node {
constructor();

id: func() -> u32;

name: func() -> string;
set-name: func(value: string);

Expand Down

0 comments on commit ac7ded9

Please sign in to comment.