Пример #1
0
 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);
 }
Пример #2
0
 internal static bool CanBuild(Coordinate buildPos, IBuildable buildable)
 {
     return(MainBuildGrid.CanBuild(buildPos, buildable));
 }
Пример #3
0
 internal static void Unbuild(IBuildable building)
 {
     MainBuildGrid.Unbuild(building);
 }
Пример #4
0
 internal static bool Construct(IBuildable building)
 {
     return(MainBuildGrid.Construct(building));
 }
Пример #5
0
 internal static void Unbuild(Coordinate position, IBuildable building)
 {
     MainBuildGrid.Unbuild(building.GridPosition, building.BuildSize);
 }
Пример #6
0
 internal static bool Build(Coordinate buildPos, IBuildable building)
 {
     return(MainBuildGrid.Build(buildPos, building.BuildSize));
 }
Пример #7
0
 internal static bool Construct(Coordinate buildPos, IBuildable building)
 {
     return(MainBuildGrid.Construct(building));
 }