summaryrefslogtreecommitdiff
path: root/scripts/map/MapData.cs
diff options
context:
space:
mode:
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();
}