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
Gondwana.Drawing.SvgResourceManager Class Referencesealed

Manages loaded SvgResource instances keyed by asset name. More...

Inheritance diagram for Gondwana.Drawing.SvgResourceManager:

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.

Detailed Description

Manages loaded SvgResource instances keyed by asset name.

Definition at line 10 of file SvgResourceManager.cs.

Member Function Documentation

◆ Clear()

void Gondwana.Drawing.SvgResourceManager.Clear ( )

Clears all loaded resources.

Definition at line 109 of file SvgResourceManager.cs.

◆ Contains()

bool Gondwana.Drawing.SvgResourceManager.Contains ( string key)

Determines whether a resource key is loaded.

Parameters
keyThe lookup key for the resource.
Returns
true if a player is registered for the key; otherwise, false.

◆ Dispose()

void Gondwana.Drawing.SvgResourceManager.Dispose ( )

Definition at line 118 of file SvgResourceManager.cs.

◆ Get()

SvgResource? Gondwana.Drawing.SvgResourceManager.Get ( string key)

Gets a resource by key or null when not found.

Parameters
keyThe lookup key for the resource.
Returns
The registered browser player, or null if the key is absent.

◆ GetAll()

Dictionary< string, SvgResource > Gondwana.Drawing.SvgResourceManager.GetAll ( )

Gets all loaded resources.

Returns
The available .

◆ LoadFromEngineAssetsFile()

List< SvgResource > Gondwana.Drawing.SvgResourceManager.LoadFromEngineAssetsFile ( AssetsFile resourceFile)

Loads all SVG resources from an AssetsFile.

Parameters
resourceFileThe assets file containing SVG entries.
Returns
The list of newly loaded resources.

Definition at line 44 of file SvgResourceManager.cs.

◆ LoadFromFile()

SvgResource Gondwana.Drawing.SvgResourceManager.LoadFromFile ( string key,
string path )

Loads an SVG resource from a file path.

Parameters
keyUnique resource key.
pathSVG file path.
Returns
The loaded resource.

Definition at line 30 of file SvgResourceManager.cs.

◆ Unload()

void Gondwana.Drawing.SvgResourceManager.Unload ( string key)

Unloads a resource by key.

Parameters
keyThe lookup key for the resource.

Definition at line 100 of file SvgResourceManager.cs.

Property Documentation

◆ Instance

SvgResourceManager Gondwana.Drawing.SvgResourceManager.Instance
staticget

Gets the singleton instance of the SvgResourceManager.

Definition at line 22 of file SvgResourceManager.cs.