コード例 #1
0
 public static VersionLoaderFactory GetInstance()
 {
     if (instance == null)
     {
         instance = new VersionLoaderFactory();
     }
     return(instance);
 }
コード例 #2
0
        /// <summary>
        /// 保存包内的v.txt
        /// </summary>
        /// <param name="localVersionText"></param>
        public static void SavePackageVersion(string localVersionText)
        {
            Dictionary <string, HashSizeFile> localMapping = new Dictionary <string, HashSizeFile>();

            VersionLoaderFactory.ParserVersion(localVersionText, localMapping);

            Dictionary <string, string> stringMapping = new Dictionary <string, string>();

            foreach (KeyValuePair <string, HashSizeFile> item in localMapping)
            {
                stringMapping[item.Key] = item.Value.hash;
            }

            FileHelper.SaveAMF(stringMapping, VdatPath);
        }
コード例 #3
0
 public ResourceLoaderManager()
 {
     versionLoaderFactory = VersionLoaderFactory.GetInstance();
 }