From d6fc2026917d55fa12713e3d00004ec461cc5971 Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 30 Oct 2025 17:31:00 -0300 Subject: vários andares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Map/FieldOfView.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scripts/Map/FieldOfView.cs') 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(); } + /// + /// 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. + /// + public void ResetFOV() + { + fov.Clear(); + } + public void UpdateFOV(MapData data, Vector2I position, int radius) { ClearFOV(); -- cgit v1.2.3