using GFramework.Core.Abstractions.versioning; namespace GFramework.Game.Abstractions.setting.data; /// /// 图形设置类,用于管理游戏的图形相关配置 /// public class GraphicsSettings : ISettingsData, IVersioned { /// /// 获取或设置是否启用全屏模式 /// public bool Fullscreen { get; set; } /// /// 获取或设置屏幕分辨率宽度 /// public int ResolutionWidth { get; set; } = 1920; /// /// 获取或设置屏幕分辨率高度 /// public int ResolutionHeight { get; set; } = 1080; /// /// 重置图形设置为默认值 /// public void Reset() { Fullscreen = false; ResolutionWidth = 1920; ResolutionHeight = 1080; } public int Version { get; set; } = 1; }