public static bool TryGetNode(Coordinate coordinate, out BuildGridNode buildNode) { if (MainBuildGrid.IsOnGrid(coordinate)) { buildNode = MainBuildGrid.Grid[coordinate.x, coordinate.y]; return(true); } buildNode = null; return(false); }
internal static bool CanBuild(Coordinate buildPos, IBuildable buildable) { return(MainBuildGrid.CanBuild(buildPos, buildable)); }
internal static void Unbuild(IBuildable building) { MainBuildGrid.Unbuild(building); }
internal static bool Construct(IBuildable building) { return(MainBuildGrid.Construct(building)); }
internal static void Unbuild(Coordinate position, IBuildable building) { MainBuildGrid.Unbuild(building.GridPosition, building.BuildSize); }
internal static bool Build(Coordinate buildPos, IBuildable building) { return(MainBuildGrid.Build(buildPos, building.BuildSize)); }
internal static bool Construct(Coordinate buildPos, IBuildable building) { return(MainBuildGrid.Construct(building)); }