![]() |
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.
|
Represents the source Tilesheet and its coordinates to render on a destination. More...
Public Member Functions | |
| Frame (Tilesheet tilesheet, int xTile, int yTile) | |
| Initializes a new instance of the Frame struct with the specified tilesheet and tile coordinates. | |
| Frame (Tilesheet tilesheet, string regionName, int xTile, int yTile) | |
| Initializes a new instance of the Frame struct with the specified tilesheet and tile coordinates. | |
| readonly bool | ClearCollisionAdjustOverride () |
| Removes this frame's explicit collision adjustment so it once again inherits its region's TilesheetRegion.CollisionAdjust. | |
| readonly bool | ClearCollisionTypeOverride () |
| Removes this frame's explicit collision type so it once again inherits its region's TilesheetRegion.CollisionType. | |
Public Attributes | |
| readonly Tilesheet | Tilesheet |
| The tilesheet that contains the source bitmap for this frame. | |
| readonly string | RegionName |
| The tilesheet region that contains the source bitmap for this frame. | |
| readonly int | XTile |
| The horizontal tile coordinate (column index) within the tilesheet. | |
| readonly int | YTile |
| The vertical tile coordinate (row index) within the tilesheet. | |
Properties | |
| readonly? SKBitmap | SkBitmap [get] |
| Gets the SkiaSharp bitmap for this frame. | |
| readonly? SKImage | SkImage [get] |
| Gets the SkiaSharp image for this frame. | |
| readonly Size | TileSize [get] |
| Gets the base tile size, without overhang. | |
| readonly Spacing | Overhang [get] |
| Gets the overhang dimensions for this frame. | |
| readonly Spacing | TilePadding [get] |
| Gets untransformed source atlas padding; placement transforms never alter slicing. | |
| CollisionAdjust | CollisionAdjust [get, set] |
| Gets or sets the collision adjustment associated with this frame's region coordinates. | |
| readonly bool | HasCollisionAdjustOverride [get] |
| Gets whether this frame has an explicit collision adjustment rather than inheriting its region's TilesheetRegion.CollisionAdjust. | |
| readonly Rectangle | CollisionArea [get] |
| Gets the frame-local collision rectangle derived from TileSize and CollisionAdjust. | |
| TileCollisionType | CollisionType [get, set] |
| Gets or sets the effective collision type associated with this frame's region coordinates. | |
| readonly bool | HasCollisionTypeOverride [get] |
| Gets whether this frame has an explicit collision type rather than inheriting its region's TilesheetRegion.CollisionType. | |
Represents the source Tilesheet and its coordinates to render on a destination.
| Gondwana.Drawing.Frame.Frame | ( | Tilesheet | tilesheet, |
| int | xTile, | ||
| int | yTile ) |
| Gondwana.Drawing.Frame.Frame | ( | Tilesheet | tilesheet, |
| string | regionName, | ||
| int | xTile, | ||
| int | yTile ) |
| readonly bool Gondwana.Drawing.Frame.ClearCollisionAdjustOverride | ( | ) |
Removes this frame's explicit collision adjustment so it once again inherits its region's TilesheetRegion.CollisionAdjust.
true if an explicit collision adjustment was cleared; otherwise, false.| readonly bool Gondwana.Drawing.Frame.ClearCollisionTypeOverride | ( | ) |
Removes this frame's explicit collision type so it once again inherits its region's TilesheetRegion.CollisionType.
true if an explicit collision type was cleared; otherwise, false.| readonly string Gondwana.Drawing.Frame.RegionName |
| readonly Tilesheet Gondwana.Drawing.Frame.Tilesheet |
| readonly int Gondwana.Drawing.Frame.XTile |
| readonly int Gondwana.Drawing.Frame.YTile |
|
getset |
Gets or sets the collision adjustment associated with this frame's region coordinates.
A frame is a lightweight tilesheet reference, so assigning this property updates the authoritative per-frame metadata owned by TilesheetRegion and its cache.
|
get |
Gets the frame-local collision rectangle derived from TileSize and CollisionAdjust.
|
getset |
|
get |
Gets whether this frame has an explicit collision adjustment rather than inheriting its region's TilesheetRegion.CollisionAdjust.
|
get |
Gets whether this frame has an explicit collision type rather than inheriting its region's TilesheetRegion.CollisionType.
|
get |
|
get |
|
get |
|
get |