summaryrefslogtreecommitdiff
path: root/scripts/map/MapData.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-25 17:40:35 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-25 17:40:35 -0300
commit7419e7237c3c5b3f1184babfcd826b7f788b599a (patch)
tree62b37af72c4325e2342e9ab976c6cc1c30e45ed2 /scripts/map/MapData.cs
parent35660f002898cd2382567696890d3fbc4d21e763 (diff)
Organização.
Diffstat (limited to 'scripts/map/MapData.cs')
-rw-r--r--scripts/map/MapData.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/map/MapData.cs b/scripts/map/MapData.cs
index 1aba35d..ea18b4b 100644
--- a/scripts/map/MapData.cs
+++ b/scripts/map/MapData.cs
@@ -12,12 +12,15 @@ public partial class MapData : RefCounted
public Godot.Collections.Array<Tile> Tiles { get; private set; } = [];
+ public Player Player { get; set; }
public Godot.Collections.Array<Actor> Actors { get; private set; } = [];
- public MapData(int width, int height) {
+ public MapData(int width, int height, Player player) {
Width = width;
Height = height;
+ Player = player;
+
SetupTiles();
}