1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-10 08:44:47 +00:00
Funkin/source/modding/IHook.hx

16 lines
417 B
Haxe
Raw Normal View History

package modding;
2022-02-26 14:06:49 +00:00
#if polymod
import polymod.hscript.HScriptable;
2022-02-26 14:06:49 +00:00
#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]
})
2022-02-26 14:06:49 +00:00
interface IHook #if polymod extends HScriptable #end {}