Esempio n. 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        bool PreprocessFinished()
        {
            //MainManifest
            MainManifest = Common.LoadMainManifest();
            if (MainManifest == null)
            {
                Error(emErrorCode.LoadMainManifestFailed
                      , "Can't load MainManifest file!");
                return(false);
            }

            // ResourcesManifest
            ResourcesManifest = Common.LoadResourcesManifest();
            if (ResourcesManifest == null)
            {
                Error(emErrorCode.LoadResourcesManiFestFailed
                      , "Can't load ResourcesInfo file!");
                return(false);
            }

            // ResourcesPackages
            ResourcesPackages = Common.LoadResourcesPackages();

            //记录当前版本号
            Version = ResourcesManifest.Data.Version;
            //标记已准备好
            IsReady = ErrorCode == emErrorCode.None;

            return(true);
        }
Esempio n. 2
0
        /// <summary>
        ///   载入ResourcesPack
        /// </summary>
        public static ResourcesPackages LoadResourcesPackagesByPath(string full_name)
        {
            var result = new ResourcesPackages();

            result.Load(full_name);
            return(result);
        }
Esempio n. 3
0
 /// <summary>
 ///   载入数据
 /// </summary>
 private void LoadData()
 {
     Packages = new ResourcesPackages();
     Packages.Load(EditorCommon.RESOURCES_PACKAGE_FILE_PATH);
 }