summaryrefslogtreecommitdiff
path: root/scripts/DungeonLevel.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 19:32:36 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 19:32:36 -0300
commitca782d7310f2df854a8727535ac92337c85ed445 (patch)
tree7df571c01d48cac56fb8362d4d091bdd2a55c09a /scripts/DungeonLevel.cs
parentadb86dd1725276457c13e9a4d37372fda628dea3 (diff)
Gigantesco refactor
Diffstat (limited to 'scripts/DungeonLevel.cs')
-rw-r--r--scripts/DungeonLevel.cs21
1 files changed, 11 insertions, 10 deletions
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>("TurnManager");
+ private Node2D actors;
- turnManager.Tick();
- }
+ public override void _Ready()
+ {
+ base._Ready();
- public void OnTurnEnd() {
- turnManager.Tick();
+ buildingLayer = GetNode<TileMapLayer>("Dungeon");
+ actors = GetNode<Node2D>("Actors");
+ player = actors.GetNode<Player>("Player");
}
}