summaryrefslogtreecommitdiff
path: root/scripts/Map/FieldOfView.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-10-30 17:31:00 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-10-30 17:31:06 -0300
commitd6fc2026917d55fa12713e3d00004ec461cc5971 (patch)
tree54fc79f9f8a217b2477721e21875e74c1736564e /scripts/Map/FieldOfView.cs
parente40bc38dcc17ebeb40722bedb94a6459e47b9aeb (diff)
vários andares
Diffstat (limited to 'scripts/Map/FieldOfView.cs')
-rw-r--r--scripts/Map/FieldOfView.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/Map/FieldOfView.cs b/scripts/Map/FieldOfView.cs
index 40df320..474c1ca 100644
--- a/scripts/Map/FieldOfView.cs
+++ b/scripts/Map/FieldOfView.cs
@@ -101,6 +101,17 @@ public partial class FieldOfView : Node
fov.Clear();
}
+ /// <summary>
+ /// Diferença de ClearFOV: não referencia tiles.
+ /// No contexto onde ResetFOV é chamado, os tiles não
+ /// podem ser referenciados porque já foram liberados da
+ /// memória.
+ /// </summary>
+ public void ResetFOV()
+ {
+ fov.Clear();
+ }
+
public void UpdateFOV(MapData data, Vector2I position, int radius)
{
ClearFOV();