mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
refactor: changed the way properties is imported in tiled_object to support new conventions
This commit is contained in:
@@ -5,8 +5,8 @@ from typing import Callable, Dict, List, Mapping, Optional, Union
|
||||
import attr
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
from . import properties
|
||||
from .common_types import Color, OrderedPair, Size
|
||||
from .properties import Properties, RawProperties
|
||||
from .template import Template
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class TiledObject:
|
||||
name: Optional[str] = None
|
||||
type: Optional[str] = None
|
||||
|
||||
properties: Properties = {}
|
||||
properties: properties.Properties = {}
|
||||
template: Optional[Template] = None
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ class RawTiledObject(TypedDict):
|
||||
visible: bool
|
||||
name: str
|
||||
type: str
|
||||
properties: RawProperties
|
||||
properties: properties.RawProperties
|
||||
template: Template
|
||||
ellipse: bool
|
||||
point: bool
|
||||
|
||||
Reference in New Issue
Block a user