1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 14:24:28 +00:00
Funkin/source/funkin/play/event/ScriptedSongEvent.hx
2023-06-08 16:30:45 -04:00

17 lines
676 B
Haxe

package funkin.play.event;
import funkin.play.song.Song;
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.
*
* - Remember to override `handleEvent(data:SongEventData)` to perform your actions when the event is hit.
* - Remember to override `getTitle()` to return an event name that will be displayed in the editor.
* - Remember to 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 {}