mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
doc(layer): _get_caster docstring
This commit is contained in:
@@ -224,6 +224,14 @@ def _cast_group_layer(raw_layer: RawLayer) -> LayerGroup:
|
||||
|
||||
|
||||
def _get_caster(type_: str) -> Callable[[RawLayer], Layer]:
|
||||
""" Get the caster function for the raw layer.
|
||||
|
||||
Args:
|
||||
type_: the type of the layer
|
||||
|
||||
Returns:
|
||||
Callable[[RawLayer], Layer]: The caster function.
|
||||
"""
|
||||
casters = {
|
||||
"tilelayer": _cast_tile_layer,
|
||||
"objectgroup": _cast_object_layer,
|
||||
|
||||
Reference in New Issue
Block a user