Add a word that waits for a game to finish running

Doug Coleman 2010-06-16 16:05:35 -05:00
parent 05b41789e2
commit b52ff181af
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ M: game-world apply-world-attributes
: start-game ( attributes -- game-world )
f swap open-window* ;
: wait-game ( attributes -- game-world )
f swap open-window* dup promise>> ?promise drop ;
: define-attributes-word ( word tuple -- )
[ name>> "-attributes" append create-in ] dip define-constant ;