A class that handles loading a stage and putting the sprites into the state.
Static variables
View on GitHub
staticDEFAULT_ATTRIBUTES:Array<String> = ["name", "startCamPosX", "startCamPosY", "zoom", "folder"]
Static methods
View on GitHub
staticgetList(mods:Bool = false, xmlOnly:Bool = false):Array<String>
Gets a list of stages that are available to be used.
Parameters:
mods | Whenever only the mods folder should be checked |
---|
Constructor
Variables
Methods
View on GitHub
addCharPos(name:String, node:Access, ?nonXMLInfo:Null<StageCharPosInfo>):StageCharPos
Adds a character position to the stage.
Parameters:
name | The name of the character |
---|---|
node | The XML node |
nonXMLInfo | (Optional) Non-XML information |
View on GitHub
applyCharStuff(char:Character, posName:String, id:Float = 0):Void
Applies the character stuff to the character. Adds the character to the stage, or inserts it into the stage.
Parameters:
char | The character |
---|---|
posName | The name of the character position |
id | The ID of the character |
View on GitHub
inlineisCharFlipped(posName:String, def:Bool = false):Bool
Checks if a character is flipped or not.
Parameters:
posName | The name of the character position |
---|---|
def | The default value |
View on GitHub
setStagesSprites(script:Script):Void
Sets the sprites in the script, so you can access them by the name.