bool RedoBlocks(Player p, Action <DrawOpBlock> output) { UndoFormatArgs args = new UndoFormatArgs(p, Start, End, output); UndoFormat format = new UndoFormatOnline(p.UndoBuffer); UndoFormat.DoRedo(null, format, args); return(args.Stop); }
static bool HighlightBlocks(Player p, DateTime start, UndoCache cache) { UndoFormatArgs args = new UndoFormatArgs(p, start, DateTime.MaxValue, null); UndoFormat format = new UndoFormatOnline(cache); UndoFormat.DoHighlight(null, format, args); return(args.Stop); }
bool UndoBlocks(Player p, Player who, Action <DrawOpBlock> output) { UndoFormatArgs args = new UndoFormatArgs(p, Start, End, output); UndoFormat format = new UndoFormatOnline(who.UndoBuffer); if (Min.X != ushort.MaxValue) { UndoFormat.DoUndoArea(null, Min, Max, format, args); } else { UndoFormat.DoUndo(null, format, args); } return(args.Stop); }