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

Identifies where authoring tools can find an animation referenced by its logical key. Runtime sprite materialization uses registered Cycle objects rather than these paths. More...

Static Public Member Functions

static SpriteAnimationSourceDefinition Loose (string animationKey, string ganiPath)
 Creates a loose GANI source reference.
static SpriteAnimationSourceDefinition Packed (string animationKey, string assetsFilePath, string assetEntryName)
 Creates a packed GANI source reference.

Properties

string AnimationKey = string.Empty [get, set]
 The logical animation/Cycle key.
SpriteAnimationSourceKind Kind = SpriteAnimationSourceKind.LooseDefinitionFile [get, set]
 The form of the source.
string? GaniPath [get, set]
 Loose GANI file path relative to the GSPR, when applicable.
string? AssetsFilePath [get, set]
 GAF path relative to the GSPR, when applicable.
string? AssetEntryName [get, set]
 Typed GANI entry name within the GAF.

Detailed Description

Identifies where authoring tools can find an animation referenced by its logical key. Runtime sprite materialization uses registered Cycle objects rather than these paths.

Definition at line 21 of file SpriteAnimationSourceDefinition.cs.

Member Function Documentation

◆ Loose()

SpriteAnimationSourceDefinition Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.Loose ( string animationKey,
string ganiPath )
static

Creates a loose GANI source reference.

Definition at line 39 of file SpriteAnimationSourceDefinition.cs.

◆ Packed()

SpriteAnimationSourceDefinition Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.Packed ( string animationKey,
string assetsFilePath,
string assetEntryName )
static

Creates a packed GANI source reference.

Definition at line 47 of file SpriteAnimationSourceDefinition.cs.

Property Documentation

◆ AnimationKey

string Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.AnimationKey = string.Empty
getset

The logical animation/Cycle key.

Definition at line 24 of file SpriteAnimationSourceDefinition.cs.

◆ AssetEntryName

string? Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.AssetEntryName
getset

Typed GANI entry name within the GAF.

Definition at line 36 of file SpriteAnimationSourceDefinition.cs.

◆ AssetsFilePath

string? Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.AssetsFilePath
getset

GAF path relative to the GSPR, when applicable.

Definition at line 33 of file SpriteAnimationSourceDefinition.cs.

◆ GaniPath

string? Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.GaniPath
getset

Loose GANI file path relative to the GSPR, when applicable.

Definition at line 30 of file SpriteAnimationSourceDefinition.cs.

◆ Kind

SpriteAnimationSourceKind Gondwana.Drawing.Sprites.GSPR.SpriteAnimationSourceDefinition.Kind = SpriteAnimationSourceKind.LooseDefinitionFile
getset

The form of the source.

Definition at line 27 of file SpriteAnimationSourceDefinition.cs.