/// <summary> /// ダウンロード処理 /// </summary> public ILoadProcess CacheOrDownload(string identifier) { var data = LoadDatabase.GetBundleData(identifier); if (data == null) { OnError(ChipstarResult.ClientError($"Target Bundle Data is Not Found. == {identifier}")); return(SkipLoadProcess.Create(identifier)); } if (data.IsOnMemory) { // ロード済みは無視 ChipstarLog.Log_Skip_OnMemory(data.Identifier); return(SkipLoadProcess.Create(data.Identifier)); } if (StorageDatabase.HasStorage(data)) { // キャッシュ済は無視 ChipstarLog.Log_Cached(data); return(SkipLoadProcess.Create(data.Identifier)); } return(CreateDowloadJob(data.Url, data)); }