Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition Class Referencesealed

Defines a rectangular region within a tilesheet, including layout and collision metadata. More...

Properties

string Name = TilesheetRegion.DefaultRegionName [get, set]
 Gets or sets the name of the region.
Rectangle Area [get, set]
 Gets or sets the rectangular bounds of this region in the source image.
Size TileSize [get, set]
 Gets or sets the size of individual frames in this region.
Spacing TilePadding = Spacing.None [get, set]
 Gets or sets the spacing between adjacent frames.
Spacing RegionMargin = Spacing.None [get, set]
 Gets or sets the margin around the frame grid.
Spacing Overhang = Spacing.None [get, set]
 Gets or sets the visual overhang beyond the logical tile bounds.
CollisionAdjust CollisionAdjust = CollisionAdjust.None [get, set]
 Gets or sets the region-level collision adjustment applied to all frames by default.
TileCollisionType CollisionType = TileCollisionType.None [get, set]
 Gets or sets the region-level collision type inherited by frames without an explicit collision-type override.
List< TilesheetFrameDefinition > Frames = [] [get, set]
 Gets or sets per-frame collision metadata for this region. A missing collision property on a frame means that frame inherits the corresponding region value.

Detailed Description

Defines a rectangular region within a tilesheet, including layout and collision metadata.

Definition at line 9 of file TilesheetRegionDefinition.cs.

Property Documentation

◆ Area

Rectangle Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.Area
getset

Gets or sets the rectangular bounds of this region in the source image.

Definition at line 19 of file TilesheetRegionDefinition.cs.

◆ CollisionAdjust

CollisionAdjust Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.CollisionAdjust = CollisionAdjust.None
getset

Gets or sets the region-level collision adjustment applied to all frames by default.

Definition at line 44 of file TilesheetRegionDefinition.cs.

◆ CollisionType

TileCollisionType Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.CollisionType = TileCollisionType.None
getset

Gets or sets the region-level collision type inherited by frames without an explicit collision-type override.

Definition at line 50 of file TilesheetRegionDefinition.cs.

◆ Frames

List<TilesheetFrameDefinition> Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.Frames = []
getset

Gets or sets per-frame collision metadata for this region. A missing collision property on a frame means that frame inherits the corresponding region value.

Definition at line 56 of file TilesheetRegionDefinition.cs.

◆ Name

string Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.Name = TilesheetRegion.DefaultRegionName
getset

Gets or sets the name of the region.

Definition at line 14 of file TilesheetRegionDefinition.cs.

◆ Overhang

Spacing Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.Overhang = Spacing.None
getset

Gets or sets the visual overhang beyond the logical tile bounds.

Definition at line 39 of file TilesheetRegionDefinition.cs.

◆ RegionMargin

Spacing Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.RegionMargin = Spacing.None
getset

Gets or sets the margin around the frame grid.

Definition at line 34 of file TilesheetRegionDefinition.cs.

◆ TilePadding

Spacing Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.TilePadding = Spacing.None
getset

Gets or sets the spacing between adjacent frames.

Definition at line 29 of file TilesheetRegionDefinition.cs.

◆ TileSize

Size Gondwana.Drawing.Tilesheets.GTS.TilesheetRegionDefinition.TileSize
getset

Gets or sets the size of individual frames in this region.

Definition at line 24 of file TilesheetRegionDefinition.cs.