summaryrefslogtreecommitdiff
path: root/scripts/map/MapData.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-25 17:26:01 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-25 17:26:01 -0300
commit35660f002898cd2382567696890d3fbc4d21e763 (patch)
tree5b69cd8857e60b614ad01344abfb48400d6dd25c /scripts/map/MapData.cs
parent832fe5e98842123bcc9d0c3245babf172bb10578 (diff)
FOV
Diffstat (limited to 'scripts/map/MapData.cs')
-rw-r--r--scripts/map/MapData.cs4
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) {