mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-29 07:40:11 +01:00
Add recursive link so tiles have a handle to the tileset they are a part of. Needed when pulling additional frames of animation.
This commit is contained in:
@@ -470,6 +470,9 @@ class Hitbox:
|
||||
points: str
|
||||
|
||||
|
||||
class TileSet:
|
||||
pass
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class Tile:
|
||||
@@ -492,6 +495,7 @@ class Tile:
|
||||
image: Optional[Image]
|
||||
hitboxes: Optional[List[Hitbox]]
|
||||
properties: Optional[List[Property]]
|
||||
tileset: Optional[TileSet]
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
|
||||
Reference in New Issue
Block a user