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
AnimationDefinition.cs
2
6public sealed class AnimationDefinition
7{
8 [Newtonsoft.Json.JsonIgnore]
9 internal DefinitionLoadStamp? LoadStamp { get; set; }
10
12
16 public string Key { get; set; } = string.Empty;
17
21 public double ThrottleTime { get; set; }
22
26 public CycleType CycleType { get; set; } = CycleType.Simple;
27
31 public bool HideTileOnCycleEnd { get; set; }
32
37 public string? NextCycleKey { get; set; }
38
43 public List<AnimationTilesheetSourceDefinition> TilesheetSources { get; set; } = [];
44
48 public List<AnimationFrameDefinition> Frames { get; set; } = [];
49
54 {
55 get => _source;
56 set => _source = value ?? throw new ArgumentNullException(nameof(value));
57 }
58}
Captures provenance details for an animation definition.
static AnimationDefinitionSource None()
Creates an empty definition-source descriptor.
Represents the root definition of an animation in the GANI (Gondwana Animation) file format.
AnimationDefinitionSource Source
Gets or sets provenance metadata describing where this definition came from.
double ThrottleTime
Gets or sets the time in seconds between frame transitions.
string? NextCycleKey
Gets or sets the key of the cycle to transition to when this cycle ends. A null or empty value uses t...
bool HideTileOnCycleEnd
Gets or sets whether the owning tile should be hidden when this cycle ends.
List< AnimationTilesheetSourceDefinition > TilesheetSources
Gets or sets authoring-time locations for logical GTS dependencies used by this animation....
string Key
Gets or sets the globally unique animation key used by Cycle.
CycleType CycleType
Gets or sets the sequence playback pattern.
List< AnimationFrameDefinition > Frames
Gets or sets the ordered frame references in this animation.
CycleType
Simple is self-terminating; the other two are repeating.
Definition CycleType.cs:11