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
TilesheetDefinition.cs
2
6public sealed class TilesheetDefinition
7{
8 [Newtonsoft.Json.JsonIgnore]
9 internal DefinitionLoadStamp? LoadStamp { get; set; }
10
12
16 public string Name { get; set; } = string.Empty;
17
21 public TilesheetImageDefinition Image { get; set; } = new();
22
26 public List<TilesheetRegionDefinition> Regions { get; set; } = [];
27
31 public TilesheetMaskDefinition? Mask { get; set; }
32
36 public bool PremultiplyAlpha { get; set; }
37
42 {
43 get => _source;
44 set => _source = value ?? throw new ArgumentNullException(nameof(value));
45 }
46}
Captures provenance details for a tilesheet definition.
static TilesheetDefinitionSource None()
Creates an empty source marker when no provenance is known.
Represents the root definition of a tilesheet in the GTS (Gondwana Tilesheet) file format.
List< TilesheetRegionDefinition > Regions
Gets or sets the list of region definitions that define subdivisions within the tilesheet.
TilesheetImageDefinition Image
Gets or sets the image definition that specifies the source image for the tilesheet.
TilesheetMaskDefinition? Mask
Gets or sets the mask definition for color transparency, or null if no mask is applied.
string Name
Gets or sets the name of the tilesheet.
bool PremultiplyAlpha
Gets or sets a value indicating whether alpha should be premultiplied when loading the tilesheet imag...
TilesheetDefinitionSource Source
Gets or sets the provenance metadata for where this definition came from.
Represents the image source definition for a tilesheet, specifying where the image data can be loaded...
Defines a color mask used to identify and process specific colors within a tilesheet image.