more optimization

This commit is contained in:
Yoshman29
2023-01-09 17:36:27 +01:00
parent 3d89c13b1b
commit 4e5a316001
6 changed files with 32 additions and 7 deletions
@@ -1,10 +1,10 @@
package funkin.scripting.events;
import funkin.scripting.ScriptPack;
import flixel.util.FlxDestroyUtil.IFlxDestroyable;
@:allow(ScriptPack)
@:autoBuild(funkin.macros.EventMacro.build())
class CancellableEvent {
class CancellableEvent implements IFlxDestroyable {
@:dox(hide) public var cancelled:Bool = false;
@:dox(hide) private var __continueCalls:Bool = true;
@@ -49,4 +49,8 @@ class CancellableEvent {
var rep = '[${claName[claName.length-1]}${cancelled ? " (Cancelled)" : ""}]';
return rep;
}
public function destroy() {
data = null;
}
}