✨ Tiles able to deconstruct
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user