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.
Loading...
Searching...
No Matches
Gondwana.Assets.AssetsFileEntry Class Referencesealed

Represents an entry for an engine asset file, including its type and name. More...

Inheritance diagram for Gondwana.Assets.AssetsFileEntry:

Public Member Functions

override string ToString ()
 Returns a string representation of the asset, combining the asset type and name.
bool Equals (AssetsFileEntry? other)
 Determines whether the current AssetsFileEntry is equal to another AssetsFileEntry
override bool Equals (object? obj)
 Determines whether the specified object is equal to the current AssetsFileEntry.
override int GetHashCode ()
 Returns the hash code for the current AssetsFileEntry.

Properties

AssetTypes AssetType [get, set]
 Gets or sets the type of asset associated with the engine.
string AssetName = string.Empty [get, set]
 Gets or sets the name of the asset.

Detailed Description

Represents an entry for an engine asset file, including its type and name.

This class provides functionality to parse a string representation of an engine asset file entry and to compare entries for equality. The string representation is expected in the format 'AssetType_AssetName'.

Member Function Documentation

◆ Equals() [1/2]

bool Gondwana.Assets.AssetsFileEntry.Equals ( AssetsFileEntry? other)

Determines whether the current AssetsFileEntry is equal to another AssetsFileEntry

Two entries are considered equal if they have the same asset type and asset name (case-insensitive comparison).

Parameters
otherThe AssetsFileEntry to compare with the current instance.
Returns
true if the specified entry is equal to the current entry; otherwise, false.

◆ Equals() [2/2]

override bool Gondwana.Assets.AssetsFileEntry.Equals ( object? obj)

Determines whether the specified object is equal to the current AssetsFileEntry.

Parameters
objThe object to compare with the current instance.
Returns
true if the specified object is an AssetsFileEntry and is equal to the current entry; otherwise, false.

◆ GetHashCode()

override int Gondwana.Assets.AssetsFileEntry.GetHashCode ( )

Returns the hash code for the current AssetsFileEntry.

The hash code is computed based on the asset type and the lowercase version of the asset name to ensure case-insensitive equality.

Returns
A 32-bit signed integer hash code.

◆ ToString()

override string Gondwana.Assets.AssetsFileEntry.ToString ( )

Returns a string representation of the asset, combining the asset type and name.

Returns
A string in the format "AssetType_assetname", where "AssetType" is the type of the asset and "assetname" is the lowercase version of the asset name.

Property Documentation

◆ AssetName

string Gondwana.Assets.AssetsFileEntry.AssetName = string.Empty
getset

Gets or sets the name of the asset.

◆ AssetType

AssetTypes Gondwana.Assets.AssetsFileEntry.AssetType
getset

Gets or sets the type of asset associated with the engine.