mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-05-19 04:17:04 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
31 lines
540 B
C#
31 lines
540 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
|
|
namespace Steamworks
|
|
{
|
|
internal struct AppId
|
|
{
|
|
internal 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;
|
|
}
|
|
}
|
|
}
|