diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 18:31:40 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 18:31:40 -0300 |
| commit | 1e248d3dd18f7c6bfaf8066c4662facbbb89e8f9 (patch) | |
| tree | 8250335d5ad8176da05f7243052b9af85802c7ed /scripts/map/Map.cs | |
| parent | 147bb12b5d48c5432aa1bd1cbe60b8435294445b (diff) | |
Itens na masmorra
Diffstat (limited to 'scripts/map/Map.cs')
| -rw-r--r-- | scripts/map/Map.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/map/Map.cs b/scripts/map/Map.cs index c14880a..f4f0783 100644 --- a/scripts/map/Map.cs +++ b/scripts/map/Map.cs @@ -46,11 +46,11 @@ public partial class Map : Node2D } /// <summary> - /// Coloca todos os tiles do mapa no mundo do jogo. + /// Coloca todas as entidades do mapa no mundo do jogo. /// </summary> private void PlaceEntities() { - foreach (Actor actor in Map_Data.Entities) { - entitiesNode.AddChild(actor); + foreach (Entity entity in Map_Data.Entities) { + entitiesNode.AddChild(entity); } } @@ -72,9 +72,9 @@ public partial class Map : Node2D /// <param name="pos">Centro de visão, normalmente é a posição do jogador.</param> public void UpdateFOV(Vector2I pos) { fieldOfView.UpdateFOV(Map_Data, pos, fovRadius); - // Esconde ou revela atores com base no campo de visão. - foreach (Actor actor in Map_Data.Entities) { - actor.Visible = Map_Data.GetTile(actor.GridPosition).IsInView; + // Esconde ou revela entidades com base no campo de visão. + foreach (Entity entity in Map_Data.Entities) { + entity.Visible = Map_Data.GetTile(entity.GridPosition).IsInView; } } } |
