Files
Funkin/source/funkin/play/event/ScriptedSongEvent.hx
T

17 lines
608 B
Haxe

package funkin.play.event;
import polymod.hscript.HScriptedClass;
/**
* A script that can be tied to a SongEvent.
* Create a scripted class that extends SongEvent, then call `super('SongEventType')` to use this.
*
* - Override `handleEvent(data:SongEventData)` to perform your actions when the event is hit.
* - Override `getTitle()` to return an event name that will be displayed in the editor.
* - Override `getEventSchema()` to return a schema for the event data, used to build a form in the chart editor.
*/
@:hscriptClass
class ScriptedSongEvent extends SongEvent implements HScriptedClass
{
}