using LinePutScript.Converter; using LinePutScript.Localization.WPF; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VPet_Simulator.Windows.Interface { /// /// 点击桌宠时触发的乱说话 /// public class ClickText { [Line(ignoreCase: true)] private int mode { get; set; } = 15; /// /// 需求状态模式 /// public ModeType Mode { get => (ModeType)mode; set => mode = (int)value; } /// /// 宠物状态模式 /// [Flags] public enum ModeType { /// /// 高兴 /// Happy = 1, /// /// 普通 /// Nomal = 2, /// /// 状态不佳 /// PoorCondition = 4, /// /// 生病(躺床) /// Ill = 8 } /// /// 指定干活时说, 空为任意, sleep 为睡觉时 /// [Line(ignoreCase: true)] public string Working { get; set; } = null; /// /// 日期区间 /// [Flags] public enum DayTime { Morning = 1, Afternoon = 2, Night = 4, Midnight = 8, } /// /// 当前时间 /// [Line(ignoreCase: true)] private int dayTime { get; set; } = 15; /// /// 日期区间 /// public DayTime DaiTime { get => (DayTime)dayTime; set => dayTime = (int)value; } /// /// 好感度要求:最小值 /// [Line(IgnoreCase = true)] public int LikeMin = 0; /// /// 好感度要求:最大值 /// [Line(IgnoreCase = true)] public int LikeMax = int.MaxValue; /// /// 说话的内容 /// [Line(IgnoreCase = true)] public string Text { get; set; } private string transText = null; /// /// 说话的内容 (翻译) /// public string TranslateText { get { if (transText == null) { transText = LocalizeCore.Translate(Text); } return transText; } } } }