Ejemplo n.º 1
0
        /// <summary>
        /// Delegate function to filter out the grab stack and only show
        /// the selector.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        /// <returns></returns>
        private bool FilterGrabStack(object sender, BlockFilterArgs args)
        {
            // If we have the selector, return true
            if (playMode.IsSelector(args.Block))
                return true;

            // See if this is in the play mode's grab stack
            if (playMode.IsInGrabStack(args.Block))
                return false;

            // Only care about blocks with height
            return args.Block.Height > 0;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Delegate function to filter out the grab stack and only show
        /// the selector.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        /// <returns></returns>
        private bool FilterGrabStack(object sender, BlockFilterArgs args)
        {
            // If we have the selector, return true
            if (playMode.IsSelector(args.Block))
            {
                return(true);
            }

            // See if this is in the play mode's grab stack
            if (playMode.IsInGrabStack(args.Block))
            {
                return(false);
            }

            // Only care about blocks with height
            return(args.Block.Height > 0);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Filters out all but the bottom layer of the block.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        /// <returns></returns>
        public static bool FilterConstruction(
			object sender, BlockFilterArgs args)
        {
            return args.Block.BottomPosition == 0;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Filters out all but the bottom layer of the block.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 public static bool FilterConstruction(
     object sender, BlockFilterArgs args)
 {
     return(args.Block.BottomPosition == 0);
 }