diff options
Diffstat (limited to 'scripts/map/Map.cs')
| -rw-r--r-- | scripts/map/Map.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/map/Map.cs b/scripts/map/Map.cs index f4f0783..148bda6 100644 --- a/scripts/map/Map.cs +++ b/scripts/map/Map.cs @@ -62,6 +62,8 @@ public partial class Map : Node2D { Map_Data = generator.GenerateDungeon(player); + Map_Data.EntityPlaced += OnEntityPlaced; + PlaceTiles(); PlaceEntities(); } @@ -77,4 +79,8 @@ public partial class Map : Node2D entity.Visible = Map_Data.GetTile(entity.GridPosition).IsInView; } } + + private void OnEntityPlaced(Entity entity) { + entitiesNode.AddChild(entity); + } } |
