Files
sbox-public/engine/Sandbox.Engine/Game/GameSettings/GameSetting.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

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