diff options
Diffstat (limited to 'scripts/map/MapData.cs')
| -rw-r--r-- | scripts/map/MapData.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/map/MapData.cs b/scripts/map/MapData.cs index c580aa8..1aba35d 100644 --- a/scripts/map/MapData.cs +++ b/scripts/map/MapData.cs @@ -60,6 +60,10 @@ public partial class MapData : RefCounted return Tiles[index]; } + public Tile GetTile(int x, int y) { + return GetTile(new Vector2I(x, y)); + } + public Actor GetBlockingActorAtPosition(Vector2I pos) { foreach (Actor actor in Actors) { if (actor.GridPosition == pos && actor.BlocksMovement) { |
