using LinePutScript.Converter;
using LinePutScript.Localization.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VPet_Simulator.Core;
namespace VPet_Simulator.Windows.Interface
{
///
/// 供玩家选择说话的文本
///
public class SelectText : ICheckText, IFood
{
///
/// 玩家选项名称
///
[Line(IgnoreCase = true)]
public string Choose { get; set; } = null;
private string transChoose = null;
///
/// 玩家选项名称 (翻译)
///
public string TranslateChoose
{
get
{
if (transChoose == null)
{
transChoose = LocalizeCore.Translate(Text);
}
return transChoose;
}
set
{
transChoose = value;
}
}
///
/// 标签
///
[Line(IgnoreCase = true)]
public List Tags { get; set; } = new List();
///
/// 查看标签是否命中
///
/// 跳转到标签
public bool ContainsTag(IEnumerable totag)
{
foreach (var tag in totag)
{
if (Tags.Contains(tag))
{
return true;
}
}
return false;
}
///
/// 跳转到标签
///
[Line(IgnoreCase = true)] public List ToTags { get; set; } = new List();
[Line(ignoreCase: true)]
public double Money { get; set; }
[Line(ignoreCase: true)]
public int Exp { get; set; }
[Line(ignoreCase: true)]
public double Strength { get; set; }
[Line(ignoreCase: true)]
public double StrengthFood { get; set; }
[Line(ignoreCase: true)]
public double StrengthDrink { get; set; }
[Line(ignoreCase: true)]
public double Feeling { get; set; }
[Line(ignoreCase: true)]
public double Health { get; set; }
[Line(ignoreCase: true)]
public double Likability { get; set; }
}
}