mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-24 22:29:47 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
36 lines
758 B
C#
36 lines
758 B
C#
namespace Sandbox.Mounting;
|
|
|
|
/// <summary>
|
|
/// Information about a single mount
|
|
/// </summary>
|
|
public struct MountInfo
|
|
{
|
|
/// <summary>
|
|
/// A short, lowercase string that will be used to uniquely identify this asset source
|
|
/// </summary>
|
|
public string Ident { get; init; }
|
|
|
|
/// <summary>
|
|
/// The display name of this
|
|
/// </summary>
|
|
public string Title { get; init; }
|
|
|
|
/// <summary>
|
|
/// Is this source available, is this game installed? Can we mount it?
|
|
/// </summary>
|
|
public bool Available { get; init; }
|
|
|
|
/// <summary>
|
|
/// Is this active and mounted?
|
|
/// </summary>
|
|
public bool Mounted { get; init; }
|
|
|
|
public MountInfo( BaseGameMount e )
|
|
{
|
|
Ident = e.Ident;
|
|
Title = e.Title;
|
|
Available = e.IsInstalled;
|
|
Mounted = e.IsMounted;
|
|
}
|
|
}
|