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
SceneLayerDefinition.cs
1using System.Drawing;
4
6
10public sealed class SceneLayerDefinition
11{
15 public string ID { get; set; } = string.Empty;
16
21
25 public int Columns { get; set; }
26
30 public int Rows { get; set; }
31
35 public int TileWidth { get; set; } = 32;
36
40 public int TileHeight { get; set; } = 32;
41
45 public int ZOrder { get; set; }
46
50 public float Parallax { get; set; } = 1f;
51
55 public bool Visible { get; set; } = true;
56
60 public bool WrapHorizontally { get; set; }
61
65 public bool WrapVertically { get; set; }
66
70 public bool ShowGridLines { get; set; }
71
75 public bool ShowCollisionBoxes { get; set; }
76
80 public Point OriginPx { get; set; } = Point.Empty;
81
85 public string DefaultTileCollisionProfile { get; set; } = CollisionProfileNames.World;
86
90 public List<SceneLayerTileDefinition> Tiles { get; set; } = [];
91}
Defines one layer in a GSCN scene.
int TileWidth
Gets or sets the rendered tile width in pixels.
bool ShowGridLines
Gets or sets whether grid lines are shown.
bool ShowCollisionBoxes
Gets or sets whether collision boxes are shown.
int ZOrder
Gets or sets the layer render order.
Point OriginPx
Gets or sets the world-space origin of tile (0,0).
string ID
Gets or sets the stable layer identifier. An empty value generates a new ID when materialized.
string DefaultTileCollisionProfile
Gets or sets the collision profile assigned to fixed tiles by default.
float Parallax
Gets or sets the parallax factor.
int TileHeight
Gets or sets the rendered tile height in pixels.
List< SceneLayerTileDefinition > Tiles
Gets or sets tile entries. Coordinates identify the target cell; omitted cells remain default tiles.
bool Visible
Gets or sets whether the layer is visible.
int Columns
Gets or sets the number of tile columns.
int Rows
Gets or sets the number of tile rows.
CoordinateSystemTypes CoordinateSystemType
Gets or sets the coordinate system used by the layer.
bool WrapVertically
Gets or sets whether the layer wraps vertically.
bool WrapHorizontally
Gets or sets whether the layer wraps horizontally.
CoordinateSystemTypes
Identifies the layout and math rules used to map tiles to world pixels and world pixels back to grid ...