public PyramidReverseDrawOp() : base(new CuboidDrawOp(), -1) { wallOp = new CuboidWallsDrawOp(); airBrush = new SolidBrush(Block.air, 0); }
public static bool DoDrawOp(DrawOp op, Brush brush, Player p, ushort x1, ushort y1, ushort z1, ushort x2, ushort y2, ushort z2) { int affected = 0; if (!op.CanDraw(x1, y1, z1, x2, y2, z2, p, out affected)) return false; Player.SendMessage(p, op.Name + ": affecting up to an estimated " + affected + " blocks"); bool needReveal = op.DetermineDrawOpMethod(p.level, affected); op.Perform(x1, y1, z1, x2, y2, z2, p, p.level, brush); if (needReveal) { foreach (Player pl in Player.players) { if (pl.level.name.ToLower() == p.level.name.ToLower()) Command.all.Find("reveal").Use(p, pl.name); } } return true; }
public PyramidDrawOp(DrawOp baseOp, int yDir) { this.baseOp = baseOp; this.yDir = yDir; }