Funkin/source/modding/IHook.hx
2022-02-26 09:06:49 -05:00

15 lines
417 B
Haxe

package modding;
#if polymod
import polymod.hscript.HScriptable;
#end
/**
* Add this interface to a class to make it a scriptable object.
* Functions annotated with @:hscript will call the relevant script.
*/
@:hscript({
// ALL of these values are added to ALL scripts in the child classes.
context: [FlxG, FlxSprite, Math, Paths, Std]
})
interface IHook #if polymod extends HScriptable #end {}