23 lines
654 B
C#
23 lines
654 B
C#
namespace Pong.Scripts.Data;
|
|
|
|
/// <summary>
|
|
/// a structure containing the data of the settings.
|
|
/// </summary>
|
|
public struct Settings
|
|
{
|
|
/// <summary>
|
|
/// the scale of the game. this can be from 1.0 to 2.0
|
|
/// </summary>
|
|
public float Scale;
|
|
|
|
/// <summary>
|
|
/// options for VSync. 0 is Disabled, 1 is Enabled, 2 is Adaptive, 3 is Mailbox. These match the <see cref="DisplayServer.VSyncMode"/> enum on
|
|
/// the <see cref="DisplayServer"/>.
|
|
/// </summary>
|
|
public int VSync;
|
|
|
|
/// <summary>
|
|
/// the default values of settings.
|
|
/// </summary>
|
|
public static Settings Default => new() { Scale = 1.0f, VSync = (int)DisplayServer.VSyncMode.Enabled };
|
|
}
|