using UnityEngine; namespace EasyTalk.Nodes.Common { /// /// This class is a representation of a line of dialogue in the EasyTalk dialogue system. /// public class ConversationLine { /// /// GEts or sets the ID attributed to the line of dialogue. /// public string ID { get; set; } /// /// Gets or sets the full text of the line of dialogue. /// public string Text { get; set; } /// /// The evaluated text value of the line of dialogue, immediately prior to when it was translated. /// public string PreTranslationText { get; set; } /// /// Gets or sets the audio clip associated with the line of dialogue. /// public AudioClip AudioClip { get; set; } /// /// Gets or sets the key value associated with the line of dialogue. The key value can be anything and can be used to perform various actions when a line of dialogue is reached. /// public string Key { get; set; } /// /// Gets or sets a flag which indicates that there is not an option directly after this line, so there is likely another line of text to display. /// public bool PrecedesOption { get; set; } = false; /// /// Gets or sets the display ID of the conversation display to target and display this dialogue text on. /// public string Target { get; set; } = null; /// /// Gets or sets the original (untranslated) name of the character speaking this line of dialogue. /// public string OriginalCharacterName { get; set; } /// /// Gets or sets the translated name of the character speaking this line of dialogue. /// public string TranslatedCharacterName { get; set; } = null; /// /// Gets or sets whether the line of dialogue is being played in AUTOPLAY mode. /// public bool AutoPlay { get; set; } = false; /// /// Gets or sets whether the line overrides the automatically calculated autoplay line delay. /// public bool OverrideAutoplayDelay { get; set; } = false; /// /// Gets or sets the delay to use for the line when it is autoplayed. /// public float AutoPlayDelay { get; set; } = 3.0f; /// /// Gets or sets the minimal amount of time that the line of dialogue will be displayed when in AUTOPLAY mode (unless skipped). /// public float PlayTime { get; set; } = 0.0f; /// /// Gets or sets the icon ID which is to be displayed when the line of dialogue is shown. /// public string IconID { get; set; } = null; /// /// Gets or sets the text display mode to use when displaying the line. /// public TextDisplayMode TextDisplayMode { get; set; } = TextDisplayMode.REPLACE; } public enum TextDisplayMode { REPLACE, APPEND } }