public bool Begin(Player player, DrawOperation op)
 {
     if (player == null)
     {
         throw new ArgumentNullException("player");
     }
     if (op == null)
     {
         throw new ArgumentNullException("op");
     }
     op.Context |= BlockChangeContext.Replaced;
     return(ReplacementInstance.Begin(player, op));
 }
Exemple #2
0
        public Block NextBlock([NotNull] DrawOperation op)
        {
            if (op == null)
            {
                throw new ArgumentNullException("op");
            }
            Block block = op.Map.GetBlock(op.Coords);

            if (block == Block)
            {
                return(ReplacementInstance.NextBlock(op));
            }
            return(Block.Undefined);
        }
Exemple #3
0
 public void End()
 {
     ReplacementInstance.End();
 }