コード例 #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));