Pong/Scripts/Data/Settings.cs

21 lines
429 B
C#
Raw Normal View History

using System;
using System.Text.Json.Serialization;
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 double Scale;
/// <summary>
/// the default values of settings.
/// </summary>
public static Settings Default => new() { Scale = 1.0 };
}