![]() |
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.
|
Manages loaded SvgResource instances keyed by asset name. More...
Public Member Functions | |
| SvgResource | LoadFromFile (string key, string path) |
| Loads an SVG resource from a file path. | |
| List< SvgResource > | LoadFromEngineAssetsFile (AssetsFile resourceFile) |
| Loads all SVG resources from an AssetsFile. | |
| bool | Contains (string key) |
| Determines whether a resource key is loaded. | |
| SvgResource? | Get (string key) |
| Gets a resource by key or null when not found. | |
| Dictionary< string, SvgResource > | GetAll () |
| Gets all loaded resources. | |
| void | Unload (string key) |
| Unloads a resource by key. | |
| void | Clear () |
| Clears all loaded resources. | |
| void | Dispose () |
Properties | |
| static SvgResourceManager | Instance [get] |
| Gets the singleton instance of the SvgResourceManager. | |
Manages loaded SvgResource instances keyed by asset name.
Definition at line 10 of file SvgResourceManager.cs.
| void Gondwana.Drawing.SvgResourceManager.Clear | ( | ) |
Clears all loaded resources.
Definition at line 109 of file SvgResourceManager.cs.
| bool Gondwana.Drawing.SvgResourceManager.Contains | ( | string | key | ) |
Determines whether a resource key is loaded.
| key | The lookup key for the resource. |
true if a player is registered for the key; otherwise, false.| void Gondwana.Drawing.SvgResourceManager.Dispose | ( | ) |
Definition at line 118 of file SvgResourceManager.cs.
| SvgResource? Gondwana.Drawing.SvgResourceManager.Get | ( | string | key | ) |
Gets a resource by key or null when not found.
| key | The lookup key for the resource. |
null if the key is absent.| Dictionary< string, SvgResource > Gondwana.Drawing.SvgResourceManager.GetAll | ( | ) |
Gets all loaded resources.
| List< SvgResource > Gondwana.Drawing.SvgResourceManager.LoadFromEngineAssetsFile | ( | AssetsFile | resourceFile | ) |
Loads all SVG resources from an AssetsFile.
| resourceFile | The assets file containing SVG entries. |
Definition at line 44 of file SvgResourceManager.cs.
| SvgResource Gondwana.Drawing.SvgResourceManager.LoadFromFile | ( | string | key, |
| string | path ) |
Loads an SVG resource from a file path.
| key | Unique resource key. |
| path | SVG file path. |
Definition at line 30 of file SvgResourceManager.cs.
| void Gondwana.Drawing.SvgResourceManager.Unload | ( | string | key | ) |
Unloads a resource by key.
| key | The lookup key for the resource. |
Definition at line 100 of file SvgResourceManager.cs.
|
staticget |
Gets the singleton instance of the SvgResourceManager.
Definition at line 22 of file SvgResourceManager.cs.