26 lines
734 B
C#
Raw Normal View History

using System.Text.Json.Serialization;
2024-08-02 18:30:21 +02:00
using Questionable.Model.Questing.Converter;
2024-06-01 18:46:57 +02:00
2024-08-02 18:30:21 +02:00
namespace Questionable.Model.Questing;
2024-06-14 11:37:33 +02:00
public sealed class DialogueChoice
2024-06-01 18:46:57 +02:00
{
[JsonConverter(typeof(DialogueChoiceTypeConverter))]
public EDialogChoiceType Type { get; set; }
public string? ExcelSheet { get; set; }
2024-06-12 18:03:48 +02:00
[JsonConverter(typeof(ExcelRefConverter))]
public ExcelRef? Prompt { get; set; }
public bool Yes { get; set; } = true;
2024-06-12 18:03:48 +02:00
[JsonConverter(typeof(ExcelRefConverter))]
public ExcelRef? Answer { get; set; }
public bool AnswerIsRegularExpression { get; set; }
2024-06-12 18:03:48 +02:00
/// <summary>
/// If set, only applies when focusing the given target id.
/// </summary>
public uint? DataId { get; set; }
2024-06-01 18:46:57 +02:00
}