static public Project CreateProjectInstance(string name) { Clear(); Project = new Project(); Project.Init("", name); if (EditorCore.OnProjectLoad != null) { EditorCore.OnProjectLoad(); } return(Project); }
static public void LoadProjectFile(string path) { Clear(); string projectPath = Utility.GetRelativePathFromCurrentDir(path); Project = new Project(); Project.Init(Path.GetDirectoryName(projectPath), Path.GetFileNameWithoutExtension(projectPath)); ParseProject(); ExporterJson.LoadProjectFile(Project); LoadAllDialogues(); if (EditorCore.OnProjectLoad != null) { EditorCore.OnProjectLoad(); } }