UNPKG

ts-tiled-converter

Version:

Typescript library to convert tiled map to Studio map

8 lines (5 loc) 261 B
import { TiledXMLMap, getXMLProperties } from '../tiledXML/objects'; export const assertMapValidity = (map: TiledXMLMap): Error | boolean => { if (getXMLProperties(map).infinite !== 0) return new Error('Infinite maps are not supported.'); return true; };