Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public override void Perform(Vec3S32[] marks, Brush brush, Action <DrawOpBlock> output)
        {
            UndoCache cache = Player.UndoBuffer;

            using (IDisposable locker = cache.ClearLock.AccquireReadLock()) {
                if (RedoBlocks(Player, output))
                {
                    return;
                }
            }

            bool           found = false;
            UndoFormatArgs args  = new UndoFormatArgs(Player, Start, End, output);

            UndoFormat.DoRedo(Player.name.ToLower(), ref found, args);
        }