From 7419e7237c3c5b3f1184babfcd826b7f788b599a Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 25 Aug 2025 17:40:35 -0300 Subject: Organização. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/map/MapData.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/map/MapData.cs') 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 Tiles { get; private set; } = []; + public Player Player { get; set; } public Godot.Collections.Array 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(); } -- cgit v1.2.3