|
48 | 48 | _FLIPPED_VERTICALLY_FLAG = 0x40000000
|
49 | 49 | _FLIPPED_DIAGONALLY_FLAG = 0x20000000
|
50 | 50 |
|
51 |
| -__all__ = ["TileMap", "load_tilemap", "read_tmx"] |
| 51 | +__all__ = ["TileMap", "load_tilemap"] |
52 | 52 |
|
53 | 53 | prop_to_float = cast(Callable[[pytiled_parser.Property], float], float)
|
54 | 54 |
|
@@ -237,7 +237,7 @@ def __init__(
|
237 | 237 | ) -> None:
|
238 | 238 | if not map_file and not tiled_map:
|
239 | 239 | raise AttributeError(
|
240 |
| - "Initialized TileMap with an empty map_file or no map_object argument" |
| 240 | + "Initialized TileMap with an empty map_file or no tiled_map argument" |
241 | 241 | )
|
242 | 242 |
|
243 | 243 | if tiled_map:
|
@@ -430,7 +430,7 @@ def _get_tile_by_gid(self, tile_gid: int) -> pytiled_parser.Tile | None:
|
430 | 430 | if existing_ref:
|
431 | 431 | tile_ref = existing_ref
|
432 | 432 | else:
|
433 |
| - tile_ref = pytiled_parser.Tile(id=(tile_id), image=tileset.image) |
| 433 | + tile_ref = pytiled_parser.Tile(id=tile_id, image=tileset.image) |
434 | 434 | elif tileset.tiles is None and tileset.image is not None:
|
435 | 435 | # Not in this tileset, move to the next
|
436 | 436 | continue
|
@@ -1075,12 +1075,3 @@ def load_tilemap(
|
1075 | 1075 | texture_atlas=texture_atlas,
|
1076 | 1076 | lazy=lazy,
|
1077 | 1077 | )
|
1078 |
| - |
1079 |
| - |
1080 |
| -def read_tmx(map_file: str | Path) -> pytiled_parser.TiledMap: |
1081 |
| - """ |
1082 |
| - Deprecated function to raise a warning that it has been removed. |
1083 |
| -
|
1084 |
| - Exists to provide info for outdated code bases. |
1085 |
| - """ |
1086 |
| - raise DeprecationWarning("The read_tmx function has been replaced by the new TileMap class.") |
0 commit comments