using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Revitalize.Framework.Objects; using StardewValley; namespace Revitalize.Framework.Utilities { /// /// Deals with calculating bounding boxes on objects. /// public class BoundingBoxInfo { /// /// The number of tiles in size for this bounding box; /// public Rectangle tileSize; /// /// The pixel offset for this bounding box dimensions. /// public Rectangle pixelOffsets; public BoundingBoxInfo() { } /// /// Constructor /// /// How big in tiles this bounding box is. public BoundingBoxInfo(Rectangle TileSize) { this.tileSize = TileSize; this.pixelOffsets = new Rectangle(0, 0, 0, 0); } /// /// Constructor. /// /// How big in tiles this bounding box is. /// The offset in size and position in pixels. public BoundingBoxInfo(Rectangle TileSize,Rectangle PixelOffsets) { this.tileSize = TileSize; this.pixelOffsets = PixelOffsets; } } }