static public bool LoadDialogueFromString(Project project, Dialogue dialogue, string content) { //Deserialize if (!DeserializeFromString(dialogue, content)) { return(false); } //PostLoad dialogue.PostLoad(project); return(true); }
static public bool LoadDialogueFile(Project project, Dialogue dialogue) { //Deserialize string path = Path.Combine(EditorHelper.GetProjectDirectory(), dialogue.GetFilePathName()); if (!DeserializeFromFile(path, dialogue)) { return(false); } //PostLoad dialogue.PostLoad(project); return(true); }