mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-28 15:22:28 +01:00
Work on support for hitboxes
This commit is contained in:
@@ -459,8 +459,16 @@ class LayerGroup(Layer):
|
||||
|
||||
@dataclasses.dataclass
|
||||
class Hitbox:
|
||||
"""Group of hitboxes for
|
||||
""" Hitbox
|
||||
"""
|
||||
id: int
|
||||
x: int
|
||||
y: int
|
||||
width: int
|
||||
height: int
|
||||
hitbox_type: str
|
||||
points: str
|
||||
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
@@ -482,7 +490,7 @@ class Tile:
|
||||
terrain: Optional[TileTerrain]
|
||||
animation: Optional[List[Frame]]
|
||||
image: Optional[Image]
|
||||
hitboxes: Optional[List[TiledObject]]
|
||||
hitboxes: Optional[List[Hitbox]]
|
||||
properties: Optional[List[Property]]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user