Package | dragonBones.objects |
Class | public class XMLDataParser |
Inheritance | XMLDataParser Object |
Method | Defined By | ||
---|---|---|---|
compressData(skeletonXML:XML, textureAtlasXML:XML, byteArray:ByteArray):ByteArray [static]
Compress all data into a ByteArray for serialization. | XMLDataParser | ||
decompressData(compressedByteArray:ByteArray):DecompressedData [static]
Decompress a compatible DragonBones data. | XMLDataParser | ||
parseSkeletonData(skeletonXML:XML):SkeletonData [static]
Parse the SkeletonData. | XMLDataParser |
compressData | () | method |
public static function compressData(skeletonXML:XML, textureAtlasXML:XML, byteArray:ByteArray):ByteArray
Compress all data into a ByteArray for serialization.
Parameters
skeletonXML:XML — The Skeleton data.
| |
textureAtlasXML:XML — The TextureAtlas data.
| |
byteArray:ByteArray — The ByteArray representing the map.
|
ByteArray — ByteArray. A DragonBones compatible ByteArray.
|
decompressData | () | method |
public static function decompressData(compressedByteArray:ByteArray):DecompressedData
Decompress a compatible DragonBones data.
Parameters
compressedByteArray:ByteArray — The ByteArray to decompress.
|
DecompressedData — A DecompressedData instance.
|
parseSkeletonData | () | method |
public static function parseSkeletonData(skeletonXML:XML):SkeletonData
Parse the SkeletonData.
Parameters
skeletonXML:XML — The Skeleton xml to parse.
|
SkeletonData — A SkeletonData instance.
|