Files
pytiled_parser/pytiled_parser/properties.py
2021-11-07 02:43:32 -05:00

19 lines
465 B
Python

"""Properties Module
This module defines types for Property objects.
For more about properties in Tiled maps see the below link:
https://doc.mapeditor.org/en/stable/manual/custom-properties/
The types defined in this module get added to other objects
such as Layers, Maps, Objects, etc
"""
from pathlib import Path
from typing import Dict, Union
from .common_types import Color
Property = Union[float, Path, str, bool, Color]
Properties = Dict[str, Property]