doOnUpdateWhile

This commit is contained in:
2024-06-29 17:36:53 -06:00
parent 85067f477d
commit 53543faa86

View File

@@ -667,6 +667,20 @@
(thing.destroy))))
(m.clear))
(defMacro doOnUpdateWhile [condition &body b]
(let [funcName (symbol)]
`(withFunctions
[
(,funcName []
(when ,condition
(nextFrameActions.push
->:Void {
,@b
(,funcName)
})))
]
(,funcName))))
(defMacro addSkips [flxMovieClass]
`{
(method &override :Void prepareForSkip []