![]() |
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.
|
Represents a sequence of animation frames that can be cycled through using different animation patterns. More...
Public Member Functions | |
| double? | GetDurationSeconds (int index) |
| Gets the optional display duration for a frame occurrence. | |
| void | SetDurationSeconds (int index, double? seconds) |
| Sets a positive display duration, or null to use the cycle default. | |
| FrameSequence (Frame frame) | |
| Initializes a new instance of the FrameSequence struct with a single frame. | |
| FrameSequence (List< Frame > frames) | |
| Initializes a new instance of the FrameSequence struct with a collection of frames. | |
| Frame | AddFrame (Tilesheet bmp, string regionName, int xTile, int yTile) |
| Creates and adds a new frame to the sequence using tilesheet coordinates. | |
| Frame | AddFrame (Tilesheet bmp, int xTile, int yTile) |
| Creates and adds a new frame to the sequence using tilesheet coordinates. | |
| Frame | AddFrame (Frame frame) |
| Adds an existing frame to the sequence. | |
| void | RemoveFrame (int idx) |
| Removes the frame at the specified index from the sequence. | |
| void | Reset () |
| Resets the sequence to its initial state, starting from the first frame. | |
| IEnumerator | GetEnumerator () |
| Returns an enumerator that iterates through the frame sequence. | |
| IEnumerator< Frame > IEnumerable< Frame >. | GetEnumerator () |
| Returns a strongly-typed enumerator that iterates through the frame sequence. | |
Public Attributes | |
| CycleType | SequenceCycleType |
| The type of cycle pattern used when animating through the frame sequence. | |
Properties | |
| bool | CycleFinished [get] |
| Gets a value indicating whether the animation cycle has finished playing through the sequence. | |
| int | FrameCount [get] |
| Gets the total number of frames in the sequence. | |
| Frame | CurrentFrame [get] |
| Gets the frame currently active in the animation sequence. | |
| int | CurrentFrameIdx [get] |
| Gets the zero-based index of the current frame in the sequence. | |
| IList< Frame > | FrameList [get] |
| Gets a read-only view of the list of frames in the sequence. | |
| Frame | this[int frameIdx] [get] |
| Gets the frame at the specified index in the sequence. | |
Represents a sequence of animation frames that can be cycled through using different animation patterns.
Definition at line 11 of file FrameSequence.cs.
| Gondwana.Drawing.Animation.FrameSequence.FrameSequence | ( | Frame | frame | ) |
Initializes a new instance of the FrameSequence struct with a single frame.
| frame | The single frame to include in the sequence |
Definition at line 67 of file FrameSequence.cs.
| Gondwana.Drawing.Animation.FrameSequence.FrameSequence | ( | List< Frame > | frames | ) |
Initializes a new instance of the FrameSequence struct with a collection of frames.
| frames | The list of frames to include in the sequence |
Definition at line 81 of file FrameSequence.cs.
Adds an existing frame to the sequence.
| frame | The frame to add to the sequence |
Definition at line 193 of file FrameSequence.cs.
Creates and adds a new frame to the sequence using tilesheet coordinates.
| bmp | The tilesheet containing the frame image |
| xTile | The x-coordinate of the tile in the tilesheet |
| yTile | The y-coordinate of the tile in the tilesheet |
Definition at line 183 of file FrameSequence.cs.
| Frame Gondwana.Drawing.Animation.FrameSequence.AddFrame | ( | Tilesheet | bmp, |
| string | regionName, | ||
| int | xTile, | ||
| int | yTile ) |
Creates and adds a new frame to the sequence using tilesheet coordinates.
| bmp | The tilesheet containing the frame image |
| regionName | The name of the region within the tilesheet |
| xTile | The x-coordinate of the tile in the tilesheet |
| yTile | The y-coordinate of the tile in the tilesheet |
Definition at line 171 of file FrameSequence.cs.
| double? Gondwana.Drawing.Animation.FrameSequence.GetDurationSeconds | ( | int | index | ) |
Gets the optional display duration for a frame occurrence.
| index | The index. |
null when unavailable.| IEnumerator Gondwana.Drawing.Animation.FrameSequence.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the frame sequence.
Definition at line 314 of file FrameSequence.cs.
| IEnumerator< Frame > IEnumerable< Frame >. Gondwana.Drawing.Animation.FrameSequence.GetEnumerator | ( | ) |
Returns a strongly-typed enumerator that iterates through the frame sequence.
Definition at line 324 of file FrameSequence.cs.
| void Gondwana.Drawing.Animation.FrameSequence.RemoveFrame | ( | int | idx | ) |
Removes the frame at the specified index from the sequence.
| idx | The zero-based index of the frame to remove |
Definition at line 206 of file FrameSequence.cs.
| void Gondwana.Drawing.Animation.FrameSequence.Reset | ( | ) |
Resets the sequence to its initial state, starting from the first frame.
Definition at line 222 of file FrameSequence.cs.
| void Gondwana.Drawing.Animation.FrameSequence.SetDurationSeconds | ( | int | index, |
| double? | seconds ) |
Sets a positive display duration, or null to use the cycle default.
| index | The index. |
| seconds | The seconds. |
Definition at line 36 of file FrameSequence.cs.
| CycleType Gondwana.Drawing.Animation.FrameSequence.SequenceCycleType |
The type of cycle pattern used when animating through the frame sequence.
Definition at line 19 of file FrameSequence.cs.
|
get |
Gets the frame currently active in the animation sequence.
Definition at line 130 of file FrameSequence.cs.
|
get |
Gets the zero-based index of the current frame in the sequence.
Definition at line 145 of file FrameSequence.cs.
|
get |
Gets a value indicating whether the animation cycle has finished playing through the sequence.
Definition at line 106 of file FrameSequence.cs.
|
get |
Gets the total number of frames in the sequence.
Definition at line 115 of file FrameSequence.cs.
|
get |
Gets a read-only view of the list of frames in the sequence.
Definition at line 154 of file FrameSequence.cs.
|
get |
Gets the frame at the specified index in the sequence.
| frameIdx | The zero-based index of the frame to retrieve |
Definition at line 301 of file FrameSequence.cs.