Restructuring of the files
This commit is contained in:
29
Facepunch.Steamworks/Structs/SteamId.cs
Normal file
29
Facepunch.Steamworks/Structs/SteamId.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace Facepunch.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);
|
||||
|
||||
public bool IsValid => Value != default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user