![]() |
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 an identifier for a specific asset within a file, including its type and name. More...
Public Member Functions | |
| AssetsFileIdentifier () | |
| Initializes a new instance of the AssetsFileIdentifier class. | |
| AssetsFileIdentifier (AssetsFile resFile, AssetTypes resType, string entry) | |
| Initializes a new instance of the AssetsFileIdentifier class with the specified asset file, type, and name. | |
| override string | ToString () |
| Returns a string representation of this asset identifier. | |
Properties | |
| AssetsFile | AssetsFile = null! [get] |
| Gets the AssetsFile that contains the asset. | |
| AssetTypes | AssetType [get] |
| Gets the type of the asset. | |
| string | AssetName = null! [get] |
| Gets the name of the asset. | |
| bool | IsValid [get] |
| Gets a value indicating whether this asset identifier is valid and can retrieve data. | |
| Stream? | Data [get] |
| Gets the stream containing the asset data. | |
Represents an identifier for a specific asset within a file, including its type and name.
| Gondwana.Assets.AssetsFileIdentifier.AssetsFileIdentifier | ( | ) |
Initializes a new instance of the AssetsFileIdentifier class.
This parameterless constructor is primarily used for JSON deserialization.
| Gondwana.Assets.AssetsFileIdentifier.AssetsFileIdentifier | ( | AssetsFile | resFile, |
| AssetTypes | resType, | ||
| string | entry ) |
Initializes a new instance of the AssetsFileIdentifier class with the specified asset file, type, and name.
| resFile | The AssetsFile that contains the asset. |
| resType | The type of the asset. |
| entry | The name of the asset entry. |
| override string Gondwana.Assets.AssetsFileIdentifier.ToString | ( | ) |
Returns a string representation of this asset identifier.
|
get |
Gets the name of the asset.
|
get |
Gets the AssetsFile that contains the asset.
|
get |
Gets the type of the asset.
|
get |
Gets the stream containing the asset data.
Returns null if the asset cannot be found in the associated AssetsFile.
|
get |
Gets a value indicating whether this asset identifier is valid and can retrieve data.
An identifier is considered valid if its Data property returns a non-null stream.