2022-03-17 05:40:08 +00:00
|
|
|
package funkin.play.character;
|
|
|
|
|
2022-03-21 04:19:05 +00:00
|
|
|
/**
|
2023-01-23 03:25:45 +00: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 04:19:05 +00: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 05:40:08 +00:00
|
|
|
@:hscriptClass
|
2023-02-22 01:58:15 +00:00
|
|
|
class ScriptedBaseCharacter extends BaseCharacter implements polymod.hscript.HScriptedClass {}
|
2022-03-17 05:40:08 +00:00
|
|
|
|
2023-01-23 03:25:45 +00: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 05:40:08 +00:00
|
|
|
@:hscriptClass
|
2023-02-22 01:58:15 +00:00
|
|
|
class ScriptedSparrowCharacter extends SparrowCharacter implements polymod.hscript.HScriptedClass {}
|
2022-03-17 05:40:08 +00:00
|
|
|
|
2023-01-23 03:25:45 +00: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 04:19:05 +00:00
|
|
|
@:hscriptClass
|
2023-02-22 01:58:15 +00:00
|
|
|
class ScriptedMultiSparrowCharacter extends MultiSparrowCharacter implements polymod.hscript.HScriptedClass {}
|
2022-03-21 04:19:05 +00:00
|
|
|
|
2023-01-23 03:25:45 +00: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 05:40:08 +00:00
|
|
|
@:hscriptClass
|
2023-02-22 01:58:15 +00: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 {}
|