![]() |
Gondwana Game Engine
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, mobile, and web platforms using SkiaSharp for graphics and NAudio for sound.
|
Represents a sequence of animation frames that can be cycled through using different animation patterns. More...
Public Member Functions | |
| 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, 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.
| 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 |
| 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 |
Adds an existing frame to the sequence.
| frame | The frame to add to the sequence |
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 |
| IEnumerator Gondwana.Drawing.Animation.FrameSequence.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the frame sequence.
| IEnumerator< Frame > IEnumerable< Frame >. Gondwana.Drawing.Animation.FrameSequence.GetEnumerator | ( | ) |
Returns a strongly-typed enumerator that iterates through the frame sequence.
| 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 |
| void Gondwana.Drawing.Animation.FrameSequence.Reset | ( | ) |
Resets the sequence to its initial state, starting from the first frame.
| CycleType Gondwana.Drawing.Animation.FrameSequence.SequenceCycleType |
The type of cycle pattern used when animating through the frame sequence.
|
get |
Gets the frame currently active in the animation sequence.
|
get |
Gets the zero-based index of the current frame in the sequence.
|
get |
Gets a value indicating whether the animation cycle has finished playing through the sequence.
|
get |
Gets the total number of frames in the sequence.
|
get |
Gets a read-only view of the list of frames in the sequence.