2023-05-21 04:42:38 +00:00
|
|
|
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>
|
2023-05-27 02:50:14 +00:00
|
|
|
public double 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 long VSync;
|
2023-05-21 04:42:38 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// the default values of settings.
|
|
|
|
/// </summary>
|
2023-05-27 02:50:14 +00:00
|
|
|
public static Settings Default => new() { Scale = 1.0, VSync = (long)DisplayServer.VSyncMode.Enabled };
|
2023-05-21 04:42:38 +00:00
|
|
|
}
|