static public string SaveDialogueToString(Project project, Dialogue dialogue) { //PreSave dialogue.PreSave(project); //Serialize return(SerializeToString(dialogue)); }
static public void SaveDialogueFile(Project project, Dialogue dialogue) { //PreSave dialogue.PreSave(project); //Serialize string path = Path.Combine(EditorHelper.GetProjectDirectory(), dialogue.GetFilePathName()); SerializeToFile(path, dialogue); }