diff options
Diffstat (limited to 'scripts/Map/FieldOfView.cs')
| -rw-r--r-- | scripts/Map/FieldOfView.cs | 11 |
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(); |
