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
SpriteInstanceDefinition.cs
1using System.Drawing;
3
5
7public sealed class SpriteInstanceDefinition
8{
12 public Guid Id { get; set; }
16 public string? Nickname { get; set; }
20 public string SceneId { get; set; } = string.Empty;
24 public string SceneLayerId { get; set; } = string.Empty;
28 public PointF Position { get; set; }
32 public SpriteFrameDefinition? Frame { get; set; }
36 public bool Visible { get; set; } = true;
40 public int ZOrder { get; set; } = 1;
44 public float Rotation { get; set; }
48 public HorizontalAlignment HorizAlign { get; set; } = HorizontalAlignment.Center;
52 public VerticalAlignment VertAlign { get; set; } = VerticalAlignment.Bottom;
56 public int NudgeX { get; set; }
60 public int NudgeY { get; set; }
64 public Size RenderSize { get; set; }
68 public bool EnableFog { get; set; }
76 public bool AdjustCollisionAreaByFrame { get; set; }
80 public TileCollisionType CollisionType { get; set; }
84 public bool CollisionTypeByFrame { get; set; }
88 public string? CollisionProfileName { get; set; }
92 public bool CollisionsEnabled { get; set; }
93}
Stores a lightweight reference to one frame in a registered tilesheet.
Stable authored state for one sprite, without runtime object graphs.
TileCollisionType CollisionType
Gets or sets the collision type.
CollisionAdjust AdjustCollisionArea
Gets or sets the adjust collision area.
string SceneLayerId
Gets or sets the identifier of the referenced scene layer.
bool AdjustCollisionAreaByFrame
Gets or sets whether adjust collision area by frame is enabled.
bool CollisionsEnabled
Gets or sets whether this tile participates in collision detection.
VerticalAlignment VertAlign
Gets or sets the vert align.
HorizontalAlignment HorizAlign
Gets or sets the horiz align.
bool EnableFog
Gets or sets whether scene-layer fog applies to this tile.
string? CollisionProfileName
Gets or sets the collision profile name.
bool Visible
Gets or sets whether this drawable is visible.
string SceneId
Gets or sets the identifier of the referenced scene.
SpriteFrameDefinition? Frame
Gets or sets the frame.
string? Nickname
Gets or sets the optional lookup name.
int ZOrder
Gets or sets the drawing order within the layer.
bool CollisionTypeByFrame
Gets or sets whether collision type by frame is enabled.
VerticalAlignment
Specifies the vertical alignment of a sprite or element.
HorizontalAlignment
Specifies the horizontal alignment of an element.
TileCollisionType
Defines the default collision behavior associated with a tilesheet region, frame, or runtime tile.
Per-edge inset amounts applied to visual bounds to produce a collision rectangle.