forked from liza/Questionable
32 lines
915 B
C#
32 lines
915 B
C#
using System.Text.Json.Serialization;
|
|
using Questionable.Model.Questing.Converter;
|
|
|
|
namespace Questionable.Model.Questing;
|
|
|
|
public sealed class DialogueChoice
|
|
{
|
|
[JsonConverter(typeof(DialogueChoiceTypeConverter))]
|
|
public EDialogChoiceType Type { get; set; }
|
|
public string? ExcelSheet { get; set; }
|
|
|
|
[JsonConverter(typeof(ExcelRefConverter))]
|
|
public ExcelRef? Prompt { get; set; }
|
|
|
|
public bool Yes { get; set; } = true;
|
|
|
|
[JsonConverter(typeof(ExcelRefConverter))]
|
|
public ExcelRef? Answer { get; set; }
|
|
public bool PromptIsRegularExpression { get; set; }
|
|
public bool AnswerIsRegularExpression { get; set; }
|
|
|
|
/// <summary>
|
|
/// If set, only applies when focusing the given target id.
|
|
/// </summary>
|
|
public uint? DataId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Used for 'In from the Cold'.
|
|
/// </summary>
|
|
public string? SpecialCondition { get; set; }
|
|
}
|