mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-14 09:19:25 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
16 lines
571 B
C#
16 lines
571 B
C#
namespace Sandbox.DataModel;
|
|
|
|
/// <summary>
|
|
/// A <see cref="ConVarAttribute"/> that has been marked with <see cref="ConVarFlags.GameSetting"/>
|
|
/// This is stored as project metadata so we can set up a game without loading it.
|
|
/// </summary>
|
|
public record struct GameSetting( string Name, string Title, string Group, string Default = null )
|
|
{
|
|
public record struct Option( string Name, string Icon );
|
|
public List<Option> Options { get; set; }
|
|
|
|
public float? Min { get; set; } = null;
|
|
public float? Max { get; set; } = null;
|
|
public float? Step { get; set; } = null;
|
|
}
|