doOnUpdateWhile
This commit is contained in:
@@ -667,6 +667,20 @@
|
|||||||
(thing.destroy))))
|
(thing.destroy))))
|
||||||
(m.clear))
|
(m.clear))
|
||||||
|
|
||||||
|
(defMacro doOnUpdateWhile [condition &body b]
|
||||||
|
(let [funcName (symbol)]
|
||||||
|
`(withFunctions
|
||||||
|
[
|
||||||
|
(,funcName []
|
||||||
|
(when ,condition
|
||||||
|
(nextFrameActions.push
|
||||||
|
->:Void {
|
||||||
|
,@b
|
||||||
|
(,funcName)
|
||||||
|
})))
|
||||||
|
]
|
||||||
|
(,funcName))))
|
||||||
|
|
||||||
(defMacro addSkips [flxMovieClass]
|
(defMacro addSkips [flxMovieClass]
|
||||||
`{
|
`{
|
||||||
(method &override :Void prepareForSkip []
|
(method &override :Void prepareForSkip []
|
||||||
|
Reference in New Issue
Block a user