예제 #1
0
        static public Project CreateProjectInstance(string name)
        {
            Clear();

            Project = new Project();
            Project.Init("", name);

            if (EditorCore.OnProjectLoad != null)
            {
                EditorCore.OnProjectLoad();
            }

            return(Project);
        }
예제 #2
0
        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();
            }
        }