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
SceneDefinition.cs
1using System.ComponentModel;
3
5
9public sealed class SceneDefinition
10{
11 [Newtonsoft.Json.JsonIgnore] internal DefinitionLoadStamp? LoadStamp { get; set; }
12
14
18 [Category("Identity")]
19 [Description(
20 "Unique scene key used to find and instantiate this scene. Leave blank to generate an identifier when materialized.")]
21 public string ID { get; set; } = string.Empty;
22
26 [Category("Collision")]
27 [Description("Names of collision groups defined for this scene; group order is retained in the saved definition.")]
28 public List<string> CollisionGroups { get; set; } = [];
29
33 [Category("Collision")]
34 [Description("Named collision rules available to the scene's tiles and sprites.")]
35 public List<SceneCollisionProfileDefinition> CollisionProfiles { get; set; } = [];
36
41 [Category("Sources")]
42 [Description(
43 "GTS files or packed entries referenced by the scene for tile artwork; these are authoring-time source locations.")]
44 public List<SceneTilesheetSourceDefinition> TilesheetSources { get; set; } = [];
45
50 [Category("Sources")]
51 [Description(
52 "GANI files or packed entries referenced by the scene for animation cycles; these are authoring-time source locations.")]
53 public List<SceneAnimationSourceDefinition> AnimationSources { get; set; } = [];
54
58 [Category("Structure")]
59 [Description(
60 "Scene layers, drawn according to their ZOrder. Each layer has its own dimensions, visibility, and scrolling behavior.")]
61 public List<SceneLayerDefinition> Layers { get; set; } = [];
62
66 [Category("Provenance")]
67 [Description("Origin metadata indicating which loose scene file or packed asset contains this scene definition.")]
69 {
70 get => _source;
71 set => _source = value ?? throw new ArgumentNullException(nameof(value));
72 }
73}
Captures provenance details for a GSCN scene definition.
static SceneDefinitionSource None()
Creates an empty source marker when no provenance is known.
Represents the root definition of a scene in the GSCN (Gondwana Scene) file format.
string ID
Gets or sets the stable scene identifier. An empty value generates a new ID when materialized.
List< SceneTilesheetSourceDefinition > TilesheetSources
Gets or sets authoring-time locations for logical GTS dependencies used by this scene....
SceneDefinitionSource Source
Gets or sets provenance metadata describing where this definition came from.
List< SceneCollisionProfileDefinition > CollisionProfiles
Gets or sets named collision profiles used by the scene.
List< SceneAnimationSourceDefinition > AnimationSources
Gets or sets authoring-time locations for logical GANI dependencies used by this scene....
List< SceneLayerDefinition > Layers
Gets or sets the layers contained by the scene.
List< string > CollisionGroups
Gets or sets collision-group names in definition order.