summaryrefslogtreecommitdiff
path: root/scripts/DungeonLevel.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:10:30 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:10:30 -0300
commite9701f8ca459fa0015d78cacdc61aee904675598 (patch)
tree5cf900312952cf0e6fe9db96a1e44b1fec43d54e /scripts/DungeonLevel.cs
parentbd8a14e5d22ee7e4e53a1b3c8bfe2b35328632e5 (diff)
Sistema de turnos rudimentar
Diffstat (limited to 'scripts/DungeonLevel.cs')
-rw-r--r--scripts/DungeonLevel.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/DungeonLevel.cs b/scripts/DungeonLevel.cs
index d3a5aee..cdafdca 100644
--- a/scripts/DungeonLevel.cs
+++ b/scripts/DungeonLevel.cs
@@ -6,7 +6,8 @@ public partial class DungeonLevel : Node2D
public Player player;
private TileMapLayer buildingLayer;
[Export]
- private Godot.Collections.Array<Actor> actors = [];
+ public Godot.Collections.Array<Actor> Actors { get; private set; } = [];
+
private Node2D actorsNode;
@@ -28,7 +29,7 @@ public partial class DungeonLevel : Node2D
}
public Actor GetBlockingActorAtPosition(Vector2I pos) {
- foreach (Actor actor in actors) {
+ foreach (Actor actor in Actors) {
if (actor.GridPosition == pos && actor.BlocksMovement) {
return actor;
}