Unravel Engine C# Reference
Loading...
Searching...
No Matches
Unravel.Core.Asset< T > Class Template Reference

Represents a generic asset with a unique identifier (UID). More...

Inheritance diagram for Unravel.Core.Asset< T >:

Public Member Functions

override bool Equals (object obj)
 Determines whether the specified object is equal to the current asset.
 
bool Equals (Asset< T > other)
 Determines whether the specified Asset<T> is equal to the current asset.
 
override int GetHashCode ()
 Serves as the default hash function for the asset.
 

Static Public Member Functions

static bool operator== (Asset< T > lhs, Asset< T > rhs)
 Determines whether two Asset<T> instances are equal.
 
static bool operator!= (Asset< T > lhs, Asset< T > rhs)
 Determines whether two Asset<T> instances are not equal.
 

Properties

Guid uid [get, set]
 Gets the unique identifier (UID) of the asset.
 

Detailed Description

Represents a generic asset with a unique identifier (UID).

Template Parameters
TThe type of the asset.

Definition at line 11 of file Asset.cs.

Member Function Documentation

◆ Equals() [1/2]

bool Unravel.Core.Asset< T >.Equals ( Asset< T > other)

Determines whether the specified Asset<T> is equal to the current asset.

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

Definition at line 41 of file Asset.cs.

◆ Equals() [2/2]

override bool Unravel.Core.Asset< T >.Equals ( object obj)

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

Parameters
objThe object to compare with the current asset.
Returns
true if the specified object is an Asset<T> and is equal to the current asset; otherwise, false.

Definition at line 25 of file Asset.cs.

◆ GetHashCode()

override int Unravel.Core.Asset< T >.GetHashCode ( )

Serves as the default hash function for the asset.

Returns
A hash code for the current asset.

◆ operator!=()

static bool Unravel.Core.Asset< T >.operator!= ( Asset< T > lhs,
Asset< T > rhs )
static

Determines whether two Asset<T> instances are not equal.

Parameters
lhsThe first asset to compare.
rhsThe second asset to compare.
Returns
true if the two assets are not equal; otherwise, false.

◆ operator==()

static bool Unravel.Core.Asset< T >.operator== ( Asset< T > lhs,
Asset< T > rhs )
static

Determines whether two Asset<T> instances are equal.

Parameters
lhsThe first asset to compare.
rhsThe second asset to compare.
Returns
true if the two assets are equal; otherwise, false.

Definition at line 62 of file Asset.cs.

Property Documentation

◆ uid

Guid Unravel.Core.Asset< T >.uid
getset

Gets the unique identifier (UID) of the asset.

Definition at line 16 of file Asset.cs.


The documentation for this class was generated from the following file: