mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-10 00:34:40 +00:00
41 lines
1.6 KiB
Haxe
41 lines
1.6 KiB
Haxe
package funkin.play.character;
|
|
|
|
import funkin.play.character.MultiSparrowCharacter;
|
|
import funkin.play.character.PackerCharacter;
|
|
import funkin.play.character.SparrowCharacter;
|
|
import polymod.hscript.HScriptedClass;
|
|
|
|
/**
|
|
* A script that can be tied to a BaseCharacter, which persists across states.
|
|
* Create a scripted class that extends BaseCharacter to use this.
|
|
* 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.
|
|
*/
|
|
@:hscriptClass
|
|
class ScriptedBaseCharacter extends BaseCharacter implements HScriptedClass {}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
@:hscriptClass
|
|
class ScriptedSparrowCharacter extends SparrowCharacter implements HScriptedClass {}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
@:hscriptClass
|
|
class ScriptedMultiSparrowCharacter extends MultiSparrowCharacter implements HScriptedClass {}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
@:hscriptClass
|
|
class ScriptedPackerCharacter extends PackerCharacter implements HScriptedClass {}
|