コード例 #1
0
 string[] getUpdatelist()
 {
     string[] uplist = null;
     string[] strs   = System.Enum.GetNames(typeof(NEngine.Game.GameEnum));
     for (int i = 0; i < strs.Length; i++)
     {
         AssetVersion ver1 = AssetVersion.FromString(FileUtil.ReadFromFile(appConfigPath_new + "/Conn/" + strs[i] + "/assetVersion.config"));
         AssetVersion ver2 = AssetVersion.FromString(FileUtil.ReadFromFile(appConfigPath_old + "/Conn/" + strs[i] + "/assetVersion.config"));
         if (ver1 == null || ver2 == null)
         {
             Debug.LogError(string.Format("{0} assetversion is null", strs[i])); continue;
         }
         uplist = AssetVersion.CompareAndGetUpdateList(ver2, ver1);
     }
     return(uplist);
 }
コード例 #2
0
 public static bool IsNewAssets(AssetVersion _old, AssetVersion _new, out Dictionary <string, Hash128> newDic)
 {
     AssetVersion.CompareAndGetUpdateList(_old, _new, out newDic);
     return(newDic.Count != 0);
 }