2022-03-08 08:13:53 +00:00
|
|
|
package funkin.modding;
|
|
|
|
|
|
|
|
import polymod.hscript.HScriptable;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Functions annotated with @:hscript will call the relevant script.
|
2022-03-13 18:36:03 +00:00
|
|
|
* Functions annotated with @:hookable can be reassigned.
|
2022-03-15 00:48:45 +00:00
|
|
|
* NOTE: If you receive the following error when making a function use @:hookable:
|
|
|
|
* `Cannot access this or other member field in variable initialization`
|
|
|
|
* This is because you need to perform calls and assignments using a static variable referencing the target object.
|
2022-03-08 08:13:53 +00:00
|
|
|
*/
|
|
|
|
@:hscript({
|
|
|
|
// ALL of these values are added to ALL scripts in the child classes.
|
|
|
|
context: [FlxG, FlxSprite, Math, Paths, Std]
|
|
|
|
})
|
|
|
|
interface IHook extends HScriptable {}
|