docs: docstring for _cast_tile

This commit is contained in:
Benjamin Kirkbride
2020-05-31 01:46:54 -04:00
parent 56f8a38c86
commit 441ac2e130

View File

@@ -270,6 +270,14 @@ def _cast_point(raw_tiled_object: RawTiledObject) -> Point:
def _cast_tile(raw_tiled_object: RawTiledObject) -> Tile:
""" Cast the raw_tiled_object to a Tile object.
Args:
raw_tiled_object: Raw Tiled object to be casted to a Tile
Returns:
Tile: The Tile object created from the raw_tiled_object
"""
gid = raw_tiled_object["gid"]
return Tile(gid=gid, **_get_common_attributes(raw_tiled_object).__dict__)