mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-30 16:18:52 +01:00
Merge branch 'rf/caster' of github.com:Beefy-Swain/pytiled_parser into rf/caster
This commit is contained in:
5
tests/test_data/layer_tests/no_layers/expected.py
Normal file
5
tests/test_data/layer_tests/no_layers/expected.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from typing import List
|
||||
|
||||
from pytiled_parser import layer
|
||||
|
||||
EXPECTED: List[layer.Layer] = []
|
||||
14
tests/test_data/layer_tests/no_layers/tileset_image.json
Normal file
14
tests/test_data/layer_tests/no_layers/tileset_image.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{ "columns":8,
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.3.1",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":1.2
|
||||
}
|
||||
63
tests/test_data/map_tests/no_layers/map.json
Normal file
63
tests/test_data/map_tests/no_layers/map.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{ "compressionlevel":0,
|
||||
"editorsettings":
|
||||
{
|
||||
"export":
|
||||
{
|
||||
"target":"."
|
||||
}
|
||||
},
|
||||
"height":6,
|
||||
"infinite":false,
|
||||
"layers":[],
|
||||
"nextlayerid":2,
|
||||
"nextobjectid":1,
|
||||
"orientation":"orthogonal",
|
||||
"properties":[
|
||||
{
|
||||
"name":"bool property - false",
|
||||
"type":"bool",
|
||||
"value":false
|
||||
},
|
||||
{
|
||||
"name":"bool property - true",
|
||||
"type":"bool",
|
||||
"value":true
|
||||
},
|
||||
{
|
||||
"name":"color property",
|
||||
"type":"color",
|
||||
"value":"#ff49fcff"
|
||||
},
|
||||
{
|
||||
"name":"file property",
|
||||
"type":"file",
|
||||
"value":"..\/..\/..\/..\/..\/..\/var\/log\/syslog"
|
||||
},
|
||||
{
|
||||
"name":"float property",
|
||||
"type":"float",
|
||||
"value":1.23456789
|
||||
},
|
||||
{
|
||||
"name":"int property",
|
||||
"type":"int",
|
||||
"value":13
|
||||
},
|
||||
{
|
||||
"name":"string property",
|
||||
"type":"string",
|
||||
"value":"Hello, World!!"
|
||||
}],
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.4.1",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
"firstgid":1,
|
||||
"source":"tileset_image.json"
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":1.4,
|
||||
"width":8
|
||||
}
|
||||
@@ -18,6 +18,7 @@ ALL_LAYER_TESTS = [
|
||||
LAYER_TESTS / "b64",
|
||||
LAYER_TESTS / "b64_gzip",
|
||||
LAYER_TESTS / "b64_zlib",
|
||||
LAYER_TESTS / "no_layers",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user