Files
sbox-public/engine/Sandbox.Engine/Game/Mount/MountInfo.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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;
}
}