public void Build(IBlockStamp stamp, Transform transform) { throw new NotImplementedException(); }
public void Place(IBlockStamp stamp, Transform transform) { _layout.Build(stamp, transform); }
public void Build(IBlockStamp stamp, Transform trans) { stamp.PlaceBlock(_block, trans.ToLocation()); }
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)); } }
public void Build(IBlockStamp stamp, Transform transform) { foreach (var buildInstruction in BuildInstructions) { buildInstruction.Build(stamp, transform); } }