Gondwana Game Engine Development (master) - 2.7.0
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
SpriteDefinition.cs
2using Newtonsoft.Json;
3
5
7public sealed class SpriteDefinition
8{
10 public string Key { get; set; } = string.Empty;
11
12 [Newtonsoft.Json.JsonIgnore] internal DefinitionLoadStamp? LoadStamp { get; set; }
13
17 public List<SpriteInstanceDefinition> Sprites { get; set; } = [];
18
22 public List<SpriteTilesheetSourceDefinition> TilesheetSources { get; set; } = [];
23
27 public List<SpriteSceneSourceDefinition> SceneSources { get; set; } = [];
28
30 public List<SpriteAnimationSourceDefinition> AnimationSources { get; set; } = [];
31
33 [JsonIgnore]
35}
Captures provenance details for a GSPR scene definition.
static SpriteDefinitionSource None()
Creates an empty source marker when no provenance is known.
A collection of authored sprites. Empty collections are valid.
SpriteDefinitionSource Source
Load provenance; never persisted as an absolute content dependency.
List< SpriteInstanceDefinition > Sprites
Gets or sets the sprites.
List< SpriteTilesheetSourceDefinition > TilesheetSources
Gets or sets the tilesheet sources.
List< SpriteAnimationSourceDefinition > AnimationSources
Optional authoring locations for GANI definitions referenced by sprite animation keys.
string Key
Gets or sets the stable, case-sensitive logical identity within the document.
List< SpriteSceneSourceDefinition > SceneSources
Gets or sets the scene sources.