public static IEnumerator GetMasterDataVersion(MonoBehaviour coroutineObj, MasterDataFileIO fileIO, MasterDataVersionInfo masterDataVersion) { global::Debug.Assert(null != masterDataVersion, "マスターデータのバージョン格納先がNULLです."); yield return(coroutineObj.StartCoroutine(MasterDataVersionUpCheck.LoadLocalMasterDataVersionInfo(masterDataVersion, fileIO))); yield return(coroutineObj.StartCoroutine(MasterDataVersionUpCheck.GetServerMasterDataVersionInfo(masterDataVersion))); yield break; }
public static List <MasterId> GetVersionUpMasterIdList(List <string> tableNameList, Dictionary <MasterId, MasterBase> localMasterDataTable) { List <MasterId> list = new List <MasterId>(); MasterBase[] localMasterDataList = localMasterDataTable.Values.ToArray <MasterBase>(); for (int i = 0; i < tableNameList.Count; i++) { list.AddRange(MasterDataVersionUpCheck.GetClientCoverMasterDataIdList(tableNameList[i], localMasterDataList)); } return(list); }
public static List <string> GetVersionUpMasterDataTableNameList(MasterDataVersionInfo masterDataVersion) { List <string> list = new List <string>(); for (int i = 0; i < masterDataVersion.serverVersion.dataVersionList.Length; i++) { GameWebAPI.RespDataCM_MDVersion.DataVersionList dataVersionList = masterDataVersion.serverVersion.dataVersionList[i]; if (masterDataVersion.localVersion == null || MasterDataVersionUpCheck.IsVersionUp(masterDataVersion.localVersion.dataVersionList, dataVersionList)) { list.Add(dataVersionList.tableName); } } return(list); }