/// <summary>
        ///
        /// </summary>
        /// <param name="view"></param>
        /// <param name="loc"></param>
        /// <param name="ab"></param>
        public override void OnMouseMove(MapViewWindow view, Location loc, Point ab)
        {
            WorldDefinition w = WorldDefinition.World;

            if (isStair)
            {
                location = loc;
                w.OnAllVoxelUpdated();
            }
            else
            if (anchor != UNPLACED)
            {
                loc = loc.align4To(anchor);
                if (loc != location)
                {
                    location = loc;
                    w.OnAllVoxelUpdated();
                }
            }
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="view"></param>
        /// <param name="loc"></param>
        /// <param name="ab"></param>
        public override void OnMouseMove(MapViewWindow view, Location loc, Point ab)
        {
            WorldDefinition w = WorldDefinition.World;

            if (baseLoc != loc)
            {
                // update the screen
                baseLoc = loc;
                // TODO: we need to correctly update the screen
                w.OnAllVoxelUpdated();
            }
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="view"></param>
        /// <param name="loc"></param>
        /// <param name="ab"></param>
        public virtual void OnMouseMove(MapViewWindow view, Location loc, Point ab)
        {
            WorldDefinition w = WorldDefinition.World;

            if (anchor != unplaced && currentLoc != loc)
            {
                // the current location is moved.
                // update the screen
                currentLoc = loc;
                OnRectUpdated(this.LocationNW, this.LocationSE);
                w.OnAllVoxelUpdated();
            }
        }