dragonbones-converter
v1.0.4
Published
a library for convert dragonbones data from old version(2.3) to new version(5.6)
Downloads
3
Readme
dragonbones-converter
a library for convert dragonbones data from old version(2.3) to new version(5.6)
build
npm install
npm run build
useage
// npm i -S dragonbones-converter
import { DragonBonesXmlUtil, dbToNew } from 'dbconverter'
oldSkeletonJson = DragonBonesXmlUtil.parseXmlStrToJson(oldSkeletonXmlStr); // old sk data xml to json
textureJson = DragonBonesXmlUtil.parseXmlStrToJson(textureXmlStr); // tex xml to json
newSkeletonJson = dbToNew(oldSkeletonJson, textureJson); // old data to latest version data