Example #1
0
        private void CameraMoved(object sender, CameraMovedEventArgs e)
        {
            /*
            if (e.Position.X < double.Epsilon && e.Position.X > -double.Epsilon)
            {
                tileX = 0;
            }
            else if (-e.Position.X > 0)
            {
                tileX = (int)Math.Ceiling(-e.Position.X / 256) - 1;
            }
            else
            {
                tileX = (int)Math.Floor(-e.Position.X / 256);
            }

            if (e.Position.Z < double.Epsilon && e.Position.Z > -double.Epsilon)
            {
                tileY = 0;
            }
            else if (-e.Position.Z > 0)
            {
                tileY = (int)Math.Ceiling(-e.Position.Z / 256) - 1;
            }
            else
            {
                tileY = (int)Math.Floor(-e.Position.Z / 256);
            }
            */
        }
Example #2
0
        void OnCameraMove(CameraMovedEventArgs args)
        {
            if (ui.UIHovering || fixedCenter != null)
            {
                return;
            }

            HighlightSquareAndSignal();
        }
Example #3
0
        void OnCameraMove(CameraMovedEventArgs args)
        {
            if (ui.UIHovering)
            {
                return;
            }

            manipulator?.OnCameraMove(args);
        }
Example #4
0
 void CameraMove(CameraMovedEventArgs args)
 {
     MouseAndCameraMove();
 }
 public override void OnCameraMove(CameraMovedEventArgs args)
 {
     MouseOrCameraMove();
 }
Example #6
0
 /// <summary>
 /// Resets the cached tile under cursor after the camera is moved.
 /// </summary>
 /// <param name="args">The camera moved event data.</param>
 void OnViewMoved(CameraMovedEventArgs args)
 {
     cachedTileUnderCursor = null;
 }
Example #7
0
 public virtual void OnCameraMove(CameraMovedEventArgs args)
 {
 }