2023-01-23 00:55:30 +00:00
|
|
|
package funkin.play.event;
|
|
|
|
|
|
|
|
import funkin.play.song.Song;
|
|
|
|
import polymod.hscript.HScriptedClass;
|
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2023-01-23 00:55:30 +00:00
|
|
|
@:hscriptClass
|
2023-01-23 03:25:45 +00:00
|
|
|
class ScriptedSongEvent extends SongEvent implements HScriptedClass {}
|