UNPKG
ts-tiled-converter
Version:
latest (0.0.12)
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Typescript library to convert tiled map to Studio map
github.com/NuriYuri/ts-tiled-converter
ts-tiled-converter
/
lib
/
tiledToStudio
/
assertMapValidity.ts
8 lines
(5 loc)
•
261 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
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
; };