2022-03-17 01:40:08 -04:00
|
|
|
package funkin.play.character;
|
|
|
|
|
2022-03-21 00:19:05 -04:00
|
|
|
/**
|
2023-01-22 22:25:45 -05:00
|
|
|
* A script that can be tied to a BaseCharacter, which persists across states.
|
|
|
|
* Create a scripted class that extends BaseCharacter to use this.
|
2022-03-21 00:19:05 -04:00
|
|
|
* Note: Making a scripted class extending BaseCharacter is not recommended.
|
|
|
|
* Do so ONLY if are handling all the character rendering yourself,
|
|
|
|
* and can't use one of the built-in render modes.
|
|
|
|
*/
|
2022-03-17 01:40:08 -04:00
|
|
|
@:hscriptClass
|
2023-02-21 20:58:15 -05:00
|
|
|
class ScriptedBaseCharacter extends BaseCharacter implements polymod.hscript.HScriptedClass {}
|
2022-03-17 01:40:08 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
/**
|
|
|
|
* A script that can be tied to a SparrowCharacter, which persists across states.
|
|
|
|
* Create a scripted class that extends SparrowCharacter,
|
|
|
|
* then call `super('charId')` in the constructor to use this.
|
|
|
|
*/
|
2022-03-17 01:40:08 -04:00
|
|
|
@:hscriptClass
|
2023-02-21 20:58:15 -05:00
|
|
|
class ScriptedSparrowCharacter extends SparrowCharacter implements polymod.hscript.HScriptedClass {}
|
2022-03-17 01:40:08 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
/**
|
|
|
|
* A script that can be tied to a MultiSparrowCharacter, which persists across states.
|
|
|
|
* Create a scripted class that extends MultiSparrowCharacter,
|
|
|
|
* then call `super('charId')` in the constructor to use this.
|
|
|
|
*/
|
2022-03-21 00:19:05 -04:00
|
|
|
@:hscriptClass
|
2023-02-21 20:58:15 -05:00
|
|
|
class ScriptedMultiSparrowCharacter extends MultiSparrowCharacter implements polymod.hscript.HScriptedClass {}
|
2022-03-21 00:19:05 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
/**
|
|
|
|
* A script that can be tied to a PackerCharacter, which persists across states.
|
|
|
|
* Create a scripted class that extends PackerCharacter,
|
|
|
|
* then call `super('charId')` in the constructor to use this.
|
|
|
|
*/
|
2022-03-17 01:40:08 -04:00
|
|
|
@:hscriptClass
|
2023-02-21 20:58:15 -05:00
|
|
|
class ScriptedPackerCharacter extends PackerCharacter implements polymod.hscript.HScriptedClass {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A script that can be tied to an AnimateAtlasCharacter, which persists across states.
|
|
|
|
* Create a scripted class that extends AnimateAtlasCharacter,
|
|
|
|
* then call `super('charId')` in the constructor to use this.
|
|
|
|
*/
|
|
|
|
@:hscriptClass
|
|
|
|
class ScriptedAnimateAtlasCharacter extends AnimateAtlasCharacter implements polymod.hscript.HScriptedClass {}
|