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
Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition Class Referencesealed

Stable authored state for one sprite, without runtime object graphs. More...

Properties

Guid Id [get, set]
 Gets or sets the unique identifier.
string? Nickname [get, set]
 Gets or sets the optional lookup name.
string SceneId = string.Empty [get, set]
 Gets or sets the identifier of the referenced scene.
string SceneLayerId = string.Empty [get, set]
 Gets or sets the identifier of the referenced scene layer.
PointF Position [get, set]
 Gets or sets the position.
SpriteFrameDefinition? Frame [get, set]
 Gets or sets the frame.
bool Visible = true [get, set]
 Gets or sets whether this drawable is visible.
int ZOrder = 1 [get, set]
 Gets or sets the drawing order within the layer.
float Rotation [get, set]
 Gets or sets the rotation.
HorizontalAlignment HorizAlign = HorizontalAlignment.Center [get, set]
 Gets or sets the horiz align.
VerticalAlignment VertAlign = VerticalAlignment.Bottom [get, set]
 Gets or sets the vert align.
int NudgeX [get, set]
 Gets or sets the nudge x.
int NudgeY [get, set]
 Gets or sets the nudge y.
Size RenderSize [get, set]
 Gets or sets the render size.
bool EnableFog [get, set]
 Gets or sets whether scene-layer fog applies to this tile.
CollisionAdjust AdjustCollisionArea [get, set]
 Gets or sets the adjust collision area.
bool AdjustCollisionAreaByFrame [get, set]
 Gets or sets whether adjust collision area by frame is enabled.
TileCollisionType CollisionType [get, set]
 Gets or sets the collision type.
bool CollisionTypeByFrame [get, set]
 Gets or sets whether collision type by frame is enabled.
string? CollisionProfileName [get, set]
 Gets or sets the collision profile name.
bool CollisionsEnabled [get, set]
 Gets or sets whether this tile participates in collision detection.

Detailed Description

Stable authored state for one sprite, without runtime object graphs.

Definition at line 7 of file SpriteInstanceDefinition.cs.

Property Documentation

◆ AdjustCollisionArea

CollisionAdjust Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.AdjustCollisionArea
getset

Gets or sets the adjust collision area.

Definition at line 72 of file SpriteInstanceDefinition.cs.

◆ AdjustCollisionAreaByFrame

bool Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.AdjustCollisionAreaByFrame
getset

Gets or sets whether adjust collision area by frame is enabled.

Definition at line 76 of file SpriteInstanceDefinition.cs.

◆ CollisionProfileName

string? Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.CollisionProfileName
getset

Gets or sets the collision profile name.

Definition at line 88 of file SpriteInstanceDefinition.cs.

◆ CollisionsEnabled

bool Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.CollisionsEnabled
getset

Gets or sets whether this tile participates in collision detection.

Definition at line 92 of file SpriteInstanceDefinition.cs.

◆ CollisionType

TileCollisionType Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.CollisionType
getset

Gets or sets the collision type.

Definition at line 80 of file SpriteInstanceDefinition.cs.

◆ CollisionTypeByFrame

bool Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.CollisionTypeByFrame
getset

Gets or sets whether collision type by frame is enabled.

Definition at line 84 of file SpriteInstanceDefinition.cs.

◆ EnableFog

bool Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.EnableFog
getset

Gets or sets whether scene-layer fog applies to this tile.

Definition at line 68 of file SpriteInstanceDefinition.cs.

◆ Frame

SpriteFrameDefinition? Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.Frame
getset

Gets or sets the frame.

Definition at line 32 of file SpriteInstanceDefinition.cs.

◆ HorizAlign

HorizontalAlignment Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.HorizAlign = HorizontalAlignment.Center
getset

Gets or sets the horiz align.

Definition at line 48 of file SpriteInstanceDefinition.cs.

◆ Id

Guid Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.Id
getset

Gets or sets the unique identifier.

Definition at line 12 of file SpriteInstanceDefinition.cs.

◆ Nickname

string? Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.Nickname
getset

Gets or sets the optional lookup name.

Definition at line 16 of file SpriteInstanceDefinition.cs.

◆ NudgeX

int Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.NudgeX
getset

Gets or sets the nudge x.

Definition at line 56 of file SpriteInstanceDefinition.cs.

◆ NudgeY

int Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.NudgeY
getset

Gets or sets the nudge y.

Definition at line 60 of file SpriteInstanceDefinition.cs.

◆ Position

PointF Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.Position
getset

Gets or sets the position.

Definition at line 28 of file SpriteInstanceDefinition.cs.

◆ RenderSize

Size Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.RenderSize
getset

Gets or sets the render size.

Definition at line 64 of file SpriteInstanceDefinition.cs.

◆ Rotation

float Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.Rotation
getset

Gets or sets the rotation.

Definition at line 44 of file SpriteInstanceDefinition.cs.

◆ SceneId

string Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.SceneId = string.Empty
getset

Gets or sets the identifier of the referenced scene.

Definition at line 20 of file SpriteInstanceDefinition.cs.

◆ SceneLayerId

string Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.SceneLayerId = string.Empty
getset

Gets or sets the identifier of the referenced scene layer.

Definition at line 24 of file SpriteInstanceDefinition.cs.

◆ VertAlign

VerticalAlignment Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.VertAlign = VerticalAlignment.Bottom
getset

Gets or sets the vert align.

Definition at line 52 of file SpriteInstanceDefinition.cs.

◆ Visible

bool Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.Visible = true
getset

Gets or sets whether this drawable is visible.

Definition at line 36 of file SpriteInstanceDefinition.cs.

◆ ZOrder

int Gondwana.Drawing.Sprites.GSPR.SpriteInstanceDefinition.ZOrder = 1
getset

Gets or sets the drawing order within the layer.

Definition at line 40 of file SpriteInstanceDefinition.cs.