示例#1
0
文件: Atlas.cs 项目: szbrain/Everest
        public static new Atlas FromDirectory(string path)
        {
            patch_Atlas atlas = (patch_Atlas)orig_FromDirectory(path);

            atlas.DataMethod = "FromDirectory";
            atlas.DataPath   = path;
            atlas.FixDataPath();
            Everest.Content.ProcessLoad(atlas, atlas.DataPath);
            return(atlas);
        }
示例#2
0
文件: Atlas.cs 项目: szbrain/Everest
        public static new Atlas FromAtlas(string path, AtlasDataFormat format)
        {
            patch_Atlas atlas = (patch_Atlas)orig_FromAtlas(path, format);

            atlas.DataMethod = "FromAtlas";
            atlas.DataPath   = path;
            atlas.DataFormat = format;
            atlas.FixDataPath();
            Everest.Content.ProcessLoad(atlas, atlas.DataPath);
            return(atlas);
        }
示例#3
0
文件: Atlas.cs 项目: szbrain/Everest
        public static new Atlas FromMultiAtlas(string rootPath, string filename, AtlasDataFormat format)
        {
            patch_Atlas atlas = (patch_Atlas)orig_FromMultiAtlas(rootPath, filename, format);

            atlas.DataMethod = "FromMultiAtlas";
            atlas.DataPath   = rootPath;
            atlas.DataPaths  = new string[] { filename };
            atlas.DataFormat = format;
            atlas.FixDataPath();
            Everest.Content.ProcessLoad(atlas, atlas.DataPath);
            return(atlas);
        }