mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-11 20:10:07 +03:00
34 lines
614 B
C#
34 lines
614 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
|
|
namespace Steamworks
|
|
{
|
|
/// <summary>
|
|
/// Represents the ID of a Steam application.
|
|
/// </summary>
|
|
public struct AppId
|
|
{
|
|
public uint Value;
|
|
|
|
public override string ToString() => Value.ToString();
|
|
|
|
public static implicit operator AppId( uint value )
|
|
{
|
|
return new AppId{ Value = value };
|
|
}
|
|
|
|
public static implicit operator AppId( int value )
|
|
{
|
|
return new AppId { Value = (uint) value };
|
|
}
|
|
|
|
public static implicit operator uint( AppId value )
|
|
{
|
|
return value.Value;
|
|
}
|
|
}
|
|
}
|