1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-28 07:56:46 +00:00
Funkin/source/io/newgrounds/objects/Object.hx

33 lines
507 B
Haxe
Raw Normal View History

2020-11-01 19:16:22 +00:00
package io.newgrounds.objects;
import io.newgrounds.utils.Dispatcher;
import io.newgrounds.NGLite;
class Object {
var _core:NGLite;
public var onUpdate(default, null):Dispatcher;
public function new(core:NGLite, data:Dynamic = null) {
this._core = core;
onUpdate = new Dispatcher();
if (data != null)
parse(data);
}
@:allow(io.newgrounds.NGLite)
function parse(data:Dynamic):Void {
onUpdate.dispatch();
}
public function destroy():Void {
_core = null;
}
}