1using System.ComponentModel;
15 [Description(
"Name used to reference this set of frames from a tilesheet, animation, or scene.")]
22 "Rectangle in source-image pixels containing this region's frame grid, including margins and padding.")]
23 public Rectangle
Area {
get;
set; }
28 [Description(
"Width and height in source-image pixels of a single frame in this region.")]
35 "Unused pixel space surrounding each frame within the grid; the gap between neighboring frames includes both adjacent padding edges.")]
41 [Description(
"Unused pixel border between the region rectangle and its frame grid, in source-image pixels.")]
48 "How far the frame artwork visually extends beyond the logical tile footprint on each side, in pixels.")]
55 "Default collision-box edge insets for frames in this region; positive values shrink and negative values expand the box.")]
62 [Description(
"Default collision behavior inherited by frames without an explicit per-frame collision type.")]
70 "Optional per-frame collision overrides; frames without overrides inherit the region collision settings.")]
71 public List<TilesheetFrameDefinition>
Frames {
get;
set; } = [];
Defines a rectangular region within a tilesheet, including layout and collision metadata.
string Name
Gets or sets the name of the region.
Spacing Overhang
Gets or sets the visual overhang beyond the logical tile bounds.
Rectangle Area
Gets or sets the rectangular bounds of this region in the source image.
CollisionAdjust CollisionAdjust
Gets or sets the region-level collision adjustment applied to all frames by default.
Size TileSize
Gets or sets the size of individual frames in this region.
Spacing TilePadding
Gets or sets the spacing between adjacent frames.
TileCollisionType CollisionType
Gets or sets the region-level collision type inherited by frames without an explicit collision-type o...
List< TilesheetFrameDefinition > Frames
Gets or sets per-frame collision metadata for this region. A missing collision property on a frame me...
Spacing RegionMargin
Gets or sets the margin around the frame grid.
Represents a rectangular region within a tilesheet that contains a grid of frames.
static readonly string DefaultRegionName
The default name assigned to tilesheet regions when no name is specified.
record struct Spacing([property:JsonProperty("left")] int Left, [property:JsonProperty("top")] int Top, [property:JsonProperty("right")] int Right, [property:JsonProperty("bottom")] int Bottom)
Represents dimensions in pixels when spacing Tilesheets.
TileCollisionType
Defines the default collision behavior associated with a tilesheet region, frame, or runtime tile.
Per-edge inset amounts applied to visual bounds to produce a collision rectangle.
static readonly CollisionAdjust None
Represents an adjustment with no pixel offsets.