From ca782d7310f2df854a8727535ac92337c85ed445 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 17 Aug 2025 19:32:36 -0300 Subject: Gigantesco refactor --- scripts/DungeonLevel.cs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'scripts/DungeonLevel.cs') diff --git a/scripts/DungeonLevel.cs b/scripts/DungeonLevel.cs index c3536ac..a303254 100644 --- a/scripts/DungeonLevel.cs +++ b/scripts/DungeonLevel.cs @@ -1,18 +1,19 @@ using Godot; using System; -public partial class DungeonLevel : Node2D { - TurnManager turnManager; +public partial class DungeonLevel : Node2D +{ + public Player player; + public TileMapLayer buildingLayer; - public override void _Ready() { - base._Ready(); - - turnManager = GetNode("TurnManager"); + private Node2D actors; - turnManager.Tick(); - } + public override void _Ready() + { + base._Ready(); - public void OnTurnEnd() { - turnManager.Tick(); + buildingLayer = GetNode("Dungeon"); + actors = GetNode("Actors"); + player = actors.GetNode("Player"); } } -- cgit v1.2.3