modcharts are in

This commit is contained in:
Yoshman29
2022-10-09 22:12:53 +02:00
parent aa46bc3335
commit abee99f94c
11 changed files with 91 additions and 16 deletions
+2
View File
@@ -2,6 +2,7 @@ package funkin.scripting;
import funkin.scripting.events.CancellableEvent;
@:access(CancellableEvent)
class ScriptPack extends Script {
public var scripts:Array<Script> = [];
public var additionalDefaultVariables:Map<String, Dynamic> = [];
@@ -28,6 +29,7 @@ class ScriptPack extends Script {
public function event<T:CancellableEvent>(func:String, event:T):T {
for(e in scripts) {
e.call(func, [event]);
@:privateAccess
if (event.cancelled && event.__continueCalls) break;
}
return event;