CnC_Remastered_Collection/CnCTDRAMapEditor/Steamworks.NET/types/SteamTypes/RTime32.cs
PG-SteveT e37e174be1 C&C Remastered Map Editor
Initial commit of C&C Remastered Map Editor code
2020-09-10 11:12:58 -07:00

65 lines
1.6 KiB
C#

// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2019 Riley Labrecque
// Please see the included LICENSE.txt for additional information.
// This file is automatically generated.
// Changes to this file will be reverted when you update Steamworks.NET
#if UNITY_ANDROID || UNITY_IOS || UNITY_TIZEN || UNITY_TVOS || UNITY_WEBGL || UNITY_WSA || UNITY_PS4 || UNITY_WII || UNITY_XBOXONE || UNITY_SWITCH
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct RTime32 : System.IEquatable<RTime32>, System.IComparable<RTime32> {
public uint m_RTime32;
public RTime32(uint value) {
m_RTime32 = value;
}
public override string ToString() {
return m_RTime32.ToString();
}
public override bool Equals(object other) {
return other is RTime32 && this == (RTime32)other;
}
public override int GetHashCode() {
return m_RTime32.GetHashCode();
}
public static bool operator ==(RTime32 x, RTime32 y) {
return x.m_RTime32 == y.m_RTime32;
}
public static bool operator !=(RTime32 x, RTime32 y) {
return !(x == y);
}
public static explicit operator RTime32(uint value) {
return new RTime32(value);
}
public static explicit operator uint(RTime32 that) {
return that.m_RTime32;
}
public bool Equals(RTime32 other) {
return m_RTime32 == other.m_RTime32;
}
public int CompareTo(RTime32 other) {
return m_RTime32.CompareTo(other.m_RTime32);
}
}
}
#endif // !DISABLESTEAMWORKS