Tiles able to deconstruct

This commit is contained in:
2025-08-26 22:22:10 +08:00
parent 44cd74b07c
commit 980e130cd0
3 changed files with 27 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
#nullable enable
using System.Collections.Generic;
using Godot;
@@ -21,6 +22,11 @@ public partial class GridManager : Node
{
_grid.Remove(cell);
}
public Node2D? GetBuildingAtCell(Vector2I cell)
{
return _grid.GetValueOrDefault(cell);
}
}
public static class GridUtils