// 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_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
	#define DISABLESTEAMWORKS
#endif

#if !DISABLESTEAMWORKS

using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;

namespace Steamworks {
	[System.Serializable]
	public struct AppId_t : System.IEquatable<AppId_t>, System.IComparable<AppId_t> {
		public static readonly AppId_t Invalid = new AppId_t(0x0);
		public uint m_AppId;

		public AppId_t(uint value) {
			m_AppId = value;
		}

		public override string ToString() {
			return m_AppId.ToString();
		}

		public override bool Equals(object other) {
			return other is AppId_t && this == (AppId_t)other;
		}

		public override int GetHashCode() {
			return m_AppId.GetHashCode();
		}

		public static bool operator ==(AppId_t x, AppId_t y) {
			return x.m_AppId == y.m_AppId;
		}

		public static bool operator !=(AppId_t x, AppId_t y) {
			return !(x == y);
		}

		public static explicit operator AppId_t(uint value) {
			return new AppId_t(value);
		}

		public static explicit operator uint(AppId_t that) {
			return that.m_AppId;
		}

		public bool Equals(AppId_t other) {
			return m_AppId == other.m_AppId;
		}

		public int CompareTo(AppId_t other) {
			return m_AppId.CompareTo(other.m_AppId);
		}
	}
}

#endif // !DISABLESTEAMWORKS
