コード例 #1
0
        public BaseSerializer.SceneFileResult LoadScene(string fileName)
        {
            if (fileName.Length > 0)
            {
                fileName = system.GetFullPath(fileName);
            }

            ClearProjectOptions();
            SceneUpdated = null;

            this.system.UpdateLoadProgress(-1, "Load in progress...");

            MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer();

            BaseSerializer.SceneFileResult ret = defaultSerializer.Import(fileName);

            if (ret != BaseSerializer.SceneFileResult.Ok)
            {
                this.system.UpdateLoadProgress(-1, "Please load a Scene File...");
            }
            return(ret);
        }
コード例 #2
0
ファイル: MogitorsRoot.cs プロジェクト: andyhebear/likeleon
 public bool SaveScene(bool saveAs)
 {
     MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer();
     return (defaultSerializer.Export(saveAs) == BaseSerializer.SceneFileResult.Ok);
 }
コード例 #3
0
ファイル: MogitorsRoot.cs プロジェクト: andyhebear/likeleon
        public BaseSerializer.SceneFileResult LoadScene(string fileName)
        {
            if (fileName.Length > 0)
                fileName = system.GetFullPath(fileName);

            ClearProjectOptions();
            SceneUpdated = null;

            this.system.UpdateLoadProgress(-1, "Load in progress...");

            MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer();
            BaseSerializer.SceneFileResult ret = defaultSerializer.Import(fileName);

            if (ret != BaseSerializer.SceneFileResult.Ok)
            {
                this.system.UpdateLoadProgress(-1, "Please load a Scene File...");
            }
            return ret;
        }
コード例 #4
0
        public bool SaveScene(bool saveAs)
        {
            MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer();

            return(defaultSerializer.Export(saveAs) == BaseSerializer.SceneFileResult.Ok);
        }