public void Build(IBlockStamp stamp, Transform transform)
 {
     throw new NotImplementedException();
 }
 public void Place(IBlockStamp stamp, Transform transform)
 {
     _layout.Build(stamp, transform);
 }
Example #3
0
 public void Build(IBlockStamp stamp, Transform trans)
 {
     stamp.PlaceBlock(_block, trans.ToLocation());
 }
Example #4
0
 public void Build(IBlockStamp stamp, Transform transform)
 {
     IShapePlan plan = null;
     switch (_shape)
     {
         case BuildShape.Box:
             plan = new BoxPlan(_dimension);
             break;
         case BuildShape.Wall:
             plan = new WallPlan(_dimension);
             break;
         default: throw new RuntimeException("Unknown shape: " + _shape);
     }
     foreach (var location in plan.GetLocations()
                 .Select(x => new Location(
                     x.X*_toBuild.Width + Location.X + transform.X,
                     x.Z*_toBuild.Depth + Location.Z + transform.Z,
                     x.Y*_toBuild.Height + Location.Y + transform.Y
                     )))
     {
         _toBuild.Build(stamp, new Transform(location.X, location.Z, location.Y));
     }
 }
Example #5
0
 public void Build(IBlockStamp stamp, Transform transform)
 {
     foreach (var buildInstruction in BuildInstructions)
     {
         buildInstruction.Build(stamp, transform);
     }
 }