Files
Leenkx_Examples/call_hx/Sources/lnx/Plugin.hx
2026-05-06 17:52:45 -07:00

25 lines
354 B
Haxe

package lnx;
// Expose this class for easy access from JS
@:expose
class Plugin extends iron.Trait {
var update:Void->Void = null;
public function new() {
super();
notifyOnUpdate(function() {
if (update != null) update();
});
}
public function hello() {
trace("world");
}
public function scene() {
return iron.Scene.active;
}
}