using LinePutScript; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VPet_Simulator.Core { /// /// 游戏设置,例如窗体大小等 /// public class Setting : LpsDocument { public Setting(string lps) : base(lps) { } public Setting() : base() { } /// /// 窗体宽度 /// public double Width { get => this["windows"].GetDouble("width", 250); set => this["windows"].SetDouble("width", value); } /// /// 窗体高度 /// public double Heigh { get => this["windows"].GetDouble("heigh", 250); set => this["windows"].SetDouble("heigh", value); } /// /// 按多久视为长按 单位毫秒 /// public int PressLength { get => this["windows"].GetInt("presslength", 500); set => this["windows"].SetInt("presslength", value); } } }