Restructuring of the files
This commit is contained in:
30
Facepunch.Steamworks/Structs/DepotId.cs
Normal file
30
Facepunch.Steamworks/Structs/DepotId.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace Facepunch.Steamworks.Data
|
||||
{
|
||||
public struct DepotId
|
||||
{
|
||||
public uint Value;
|
||||
|
||||
public static implicit operator DepotId( uint value )
|
||||
{
|
||||
return new DepotId { Value = value };
|
||||
}
|
||||
|
||||
public static implicit operator DepotId( int value )
|
||||
{
|
||||
return new DepotId { Value = (uint) value };
|
||||
}
|
||||
|
||||
public static implicit operator uint( DepotId value )
|
||||
{
|
||||
return value.Value;
|
||||
}
|
||||
|
||||
public override string ToString() => Value.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user