Struct LunyAssetId
Represents a unique internal ID for an engine asset. Stable for the duration of a session.
public readonly struct LunyAssetId
Fields
Value
public readonly int Value
Field Value
- int
Properties
IsValid
public bool IsValid { get; }
Property Value
- bool
Methods
CompareTo(LunyAssetId)
public int CompareTo(LunyAssetId other)
Parameters
otherLunyAssetId
Returns
- int
Equals(LunyAssetId)
public bool Equals(LunyAssetId other)
Parameters
otherLunyAssetId
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
Generate()
Generates a new unique ObjectID.
public static LunyAssetId Generate()
Returns
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(LunyAssetId, LunyAssetId)
public static bool operator ==(LunyAssetId left, LunyAssetId right)
Parameters
leftLunyAssetIdrightLunyAssetId
Returns
- bool
implicit operator int(LunyAssetId)
public static implicit operator int(LunyAssetId id)
Parameters
idLunyAssetId
Returns
- int
implicit operator LunyAssetId(int)
public static implicit operator LunyAssetId(int value)
Parameters
valueint
Returns
operator !=(LunyAssetId, LunyAssetId)
public static bool operator !=(LunyAssetId left, LunyAssetId right)
Parameters
leftLunyAssetIdrightLunyAssetId
Returns
- bool