mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-28 15:22:28 +01:00
changed width and height attributes of Layer to be optional to accurately reflect the JSON format
This commit is contained in:
@@ -36,10 +36,9 @@ class Layer:
|
||||
|
||||
name: str
|
||||
|
||||
height: int
|
||||
width: int
|
||||
|
||||
id: Optional[int] = None
|
||||
width: Optional[int] = 0
|
||||
height: Optional[int] = 0
|
||||
offset: Optional[OrderedPair] = None
|
||||
opacity: Optional[float] = 1
|
||||
properties: Optional[properties_.Properties] = None
|
||||
|
||||
Reference in New Issue
Block a user