Skip to content

Commit

Permalink
add delta to script update
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Jun 10, 2024
1 parent b250575 commit a50b64a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spatial/wit/wired-script/world.wit
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ world script {
}

interface lifecycle {
// Arbitrary script data persisted between updates.
resource data {}

/// Called once to initialize the script.
// Called once to initialize the script.
init: func() -> data;

/// Called every tick.
update: func(data: borrow<data>);
// Called every tick.
update: func(delta: f32, data: borrow<data>);
}

0 comments on commit a50b64a

Please sign in to comment.