UNPKG

ts-tiled-converter

Version:

Typescript library to convert tiled map to Studio map

69 lines 1.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XML_TO_JSON_ATTRIBUTES = exports.XML_NUMERIC_ATTRIBUTES = void 0; /** * Constant holding the list of attributes that should be parsed as number */ exports.XML_NUMERIC_ATTRIBUTES = [ 'compressionlevel', 'width', 'height', 'x', 'y', 'tilewidth', 'tileheight', 'infinite', 'nextlayerid', 'nextobjectid', 'firstgid', 'id', 'offsetx', 'offsety', 'parallaxx', 'parallaxy', 'hexsidelength', 'tilecount', 'columns', 'probability', 'tileid', 'duration', 'tile', 'rotate', 'vflip', 'hflip', 'preferuntransformed', ]; /** * Constant holding the translation from XML attribute to JSON attribute name */ exports.XML_TO_JSON_ATTRIBUTES = { tilewidth: 'tileWidth', tileheight: 'tileHeight', tiledversion: 'tiledVersion', renderorder: 'renderOrder', compressionlevel: 'compressionLevel', hexsidelength: 'hexSideLength', staggeraxis: 'staggerAxis', staggerindex: 'staggerIndex', parallaxoriginx: 'parallaxOriginX', parallaxoriginy: 'parallaxOriginY', nextlayerid: 'nextLayerId', nextobjectid: 'nextObjectId', propertytype: 'propertyType', firstgid: 'firstGlobalId', tintcolor: 'tintColor', offsetx: 'offsetX', offsety: 'offsetY', parallaxx: 'parallaxX', parallaxy: 'parallaxY', draworder: 'drawOrder', repeatx: 'repeatX', repeaty: 'repeatY', tilecount: 'tileCount', tileid: 'tileId', wangid: 'wangId', vflip: 'vFlip', hflip: 'hFlip', preferuntransformed: 'preferUntransformed', }; //# sourceMappingURL=properties.js.map