From 929dccb75a1405737975d76648e015a3e7c00177 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 7 Oct 2017 23:07:10 -0400 Subject: reorganise repo structure --- src/SMAPI/ICursorPosition.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/SMAPI/ICursorPosition.cs (limited to 'src/SMAPI/ICursorPosition.cs') diff --git a/src/SMAPI/ICursorPosition.cs b/src/SMAPI/ICursorPosition.cs new file mode 100644 index 00000000..ddb8eb49 --- /dev/null +++ b/src/SMAPI/ICursorPosition.cs @@ -0,0 +1,17 @@ +using Microsoft.Xna.Framework; + +namespace StardewModdingAPI +{ + /// Represents a cursor position in the different coordinate systems. + public interface ICursorPosition + { + /// The pixel position relative to the top-left corner of the visible screen. + Vector2 ScreenPixels { get; } + + /// The tile position under the cursor relative to the top-left corner of the map. + Vector2 Tile { get; } + + /// The tile position that the game considers under the cursor for purposes of clicking actions. This may be different than if that's too far from the player. + Vector2 GrabTile { get; } + } +} -- cgit