diff options
Diffstat (limited to 'scripts/DungeonLevel.cs')
| -rw-r--r-- | scripts/DungeonLevel.cs | 21 |
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"); } } |
