I've come across these two functions a few times:
DialogueDatabase:
Code: Select all
public Conversation GetConversation(int conversationID)
{
return conversations.Find(c => c.id == conversationID);
}
Code: Select all
public DialogueEntry GetDialogueEntry(int dialogueEntryID)
{
return dialogueEntries.Find(e => string.Equals(e.id, dialogueEntryID));
}