Codename LogoCodename Logo

funkin.backend.utils.XMLUtil

APIWiki

Class made to make XML parsing easier.

Static methods

View in GitHub

staticaddAnimToSprite(sprite:FlxSprite, animData:AnimData):ErrorCode

View in GitHub

@:value({ loop : false })staticaddXMLAnimation(sprite:FlxSprite, anim:Access, loop:Bool = false):ErrorCode

Adds an XML animation to sprite.

Parameters:

sprite

Destination sprite

anim

Animation (Must be a anim XML node)

View in GitHub

staticapplyXMLProperty(object:Dynamic, property:Access):ErrorCode

Applies a property XML node to an object.

Parameters:

object

Object to which the xml property will be applied

property

property node.

View in GitHub

@:value({ defaultAnimType : BEAT, parentFolder : "" })staticinlinecreateSpriteFromXML(node:Access, parentFolder:String = "", defaultAnimType:XMLAnimType = BEAT, ?cl:Class<FunkinSprite>, ?args:Array<Dynamic>):FunkinSprite

Creates a new sprite based on a XML node.

View in GitHub

staticinlinedefaultForcedCheck(animName:String, sprite:FunkinSprite):Bool

View in GitHub

@:value({ loop : false, animType : NONE })staticextractAnimFromXML(anim:Access, animType:XMLAnimType = NONE, loop:Bool = false):AnimData

View in GitHub

staticfixSpacingInNode(node:Access):Access

WARNING: will edit directly the node!

View in GitHub

staticinlinefixXMLText(text:String):String

View in GitHub

@:value({ parsedSegments : null, currentFormat : null })staticgetTextFormats(_node:OneOfTwo<Xml, Access>, ?currentFormat:Dynamic, ?parsedSegments:Array<TextFormat>):Array<TextFormat>

View in GitHub

@:value({ defaultAnimType : BEAT, parentFolder : "" })staticloadSpriteFromXML(spr:FunkinSprite, node:Access, parentFolder:String = "", defaultAnimType:XMLAnimType = BEAT):FunkinSprite

Overrides a sprite based on a XML node.