mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-02-23 15:49:52 +01:00
@@ -145,7 +145,12 @@ def _parse_data(element: etree.Element, layer_width: int) -> objects.LayerData:
|
|||||||
Returns:
|
Returns:
|
||||||
LayerData: Data object containing layer data or chunks of data.
|
LayerData: Data object containing layer data or chunks of data.
|
||||||
"""
|
"""
|
||||||
encoding = element.attrib["encoding"]
|
try:
|
||||||
|
encoding = element.attrib["encoding"]
|
||||||
|
except KeyError as e:
|
||||||
|
print( "The tmx_file must be encoding by csv,. base64, gzip-base64, or zlip-base64")
|
||||||
|
raise e
|
||||||
|
|
||||||
compression = None
|
compression = None
|
||||||
try:
|
try:
|
||||||
compression = element.attrib["compression"]
|
compression = element.attrib["compression"]
|
||||||
|
|||||||
Reference in New Issue
Block a user