Skip to content

Commit

Permalink
impl: wait_until_true
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 6, 2023
1 parent 2aca339 commit 333c63b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ class PixiVisitor extends Visitor {
${statements[1]}
}` as cg.Expression

case "wait_until_true":
return `while (!${params[0]}) {
await Entry.wait_tick()
}` as cg.Expression

case "True":
return "true" as cg.Expression

Expand Down
1 change: 1 addition & 0 deletions src/Entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export class Entry {
stop_repeat
_if
if_else
wait_until_true
```
*/
create_clone(targetId: string, obj: EntrySprite) {
Expand Down

0 comments on commit 333c63b

Please sign in to comment.