Files
2026-03-04 10:03:45 +08:00

67 lines
1.1 KiB
C#

using System;
namespace Steamworks
{
[Serializable]
public struct DepotId_t : IEquatable<DepotId_t>, IComparable<DepotId_t>
{
public static readonly DepotId_t Invalid = new DepotId_t(0u);
public uint m_DepotId;
public DepotId_t(uint value)
{
m_DepotId = value;
}
public override string ToString()
{
return m_DepotId.ToString();
}
public override bool Equals(object other)
{
if (other is DepotId_t)
{
return this == (DepotId_t)other;
}
return false;
}
public override int GetHashCode()
{
return m_DepotId.GetHashCode();
}
public static bool operator ==(DepotId_t x, DepotId_t y)
{
return x.m_DepotId == y.m_DepotId;
}
public static bool operator !=(DepotId_t x, DepotId_t y)
{
return !(x == y);
}
public static explicit operator DepotId_t(uint value)
{
return new DepotId_t(value);
}
public static explicit operator uint(DepotId_t that)
{
return that.m_DepotId;
}
public bool Equals(DepotId_t other)
{
return m_DepotId == other.m_DepotId;
}
public int CompareTo(DepotId_t other)
{
return m_DepotId.CompareTo(other.m_DepotId);
}
}
}