mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 23:28:11 +03:00
27 lines
498 B
C#
27 lines
498 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
|
|
namespace Steamworks
|
|
{
|
|
public struct SteamId
|
|
{
|
|
public ulong Value;
|
|
|
|
public static implicit operator SteamId( ulong value )
|
|
{
|
|
return new SteamId { Value = value };
|
|
}
|
|
|
|
public static implicit operator ulong( SteamId value )
|
|
{
|
|
return value.Value;
|
|
}
|
|
|
|
public override string ToString() => Value.ToString();
|
|
|
|
public uint AccountId => (uint) (Value & 0xFFFFFFFFul);
|
|
}
|
|
} |