コード例 #1
0
        public Block NextBlock(DrawOperation op)
        {
            Block block = (Block)op.Map.Blocks[op.Map.Index(op.Coords)];

            if (block == Block)
            {
                return(Replacement.NextBlock(op));
            }
            return(Block.None);
        }
コード例 #2
0
        public Block NextBlock(DrawOperation op)
        {
            if (op == null)
            {
                throw new ArgumentNullException("op");
            }
            Block block = op.Map.GetBlock(op.Coords);

            if (block == Block)
            {
                return(Block.None);
            }
            return(Replacement.NextBlock(op));
        }