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); } */ }
void OnCameraMove(CameraMovedEventArgs args) { if (ui.UIHovering || fixedCenter != null) { return; } HighlightSquareAndSignal(); }
void OnCameraMove(CameraMovedEventArgs args) { if (ui.UIHovering) { return; } manipulator?.OnCameraMove(args); }
void CameraMove(CameraMovedEventArgs args) { MouseAndCameraMove(); }
public override void OnCameraMove(CameraMovedEventArgs args) { MouseOrCameraMove(); }
/// <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; }
public virtual void OnCameraMove(CameraMovedEventArgs args) { }