Пример #1
0
        public void AddDialogue(DialogueRow dialogue)
        {
            if (dialogue == null)
            {
                throw new ArgumentNullException(nameof(dialogue));
            }

            if (dialogue.Id == null)
            {
                return;
            }

            this.dialogues[dialogue.Id] = dialogue;

            if (this.dialogues.Count == 1)
            {
                this.startingDialogue = dialogue.Id;
            }
        }
Пример #2
0
 public static bool IsNullOrNone(this DialogueRow self)
 => self == null || self == DialogueRow.None;
Пример #3
0
 public static bool IsEnd(this DialogueRow self)
 => self != null &&
 (self is EndDialogueRow || string.Equals(self.Id, EndDialogueRow.Keyword));