public AssetFileInfo(string path, AssetFileManagerSettings settings, AssetBundleInfo assetBundleInfo) { this.FileName = path; this.Setting = settings.FindSettingFromPath(path); this.AssetBundleInfo = assetBundleInfo; this.StrageType = ParseStrageType(); }
/// <summary> /// ファイル情報を作成 /// </summary> AssetFileInfo CreateFileInfo(string path) { AssetFileType fileType = PraseFileType(path); AssetFileStrageType strageType = PraseStrageType(path); bool isCrypt = CheckCrypt(fileType, cryptType); return(new AssetFileInfo(path, fileType, strageType, isCrypt, this.isAlreadyEncoded && isCrypt)); }
/// <summary> /// キャッシュデータテーブルをバイナリ読み込み /// </summary> /// <param name="reader"></param> void Read(BinaryReader reader) { InitKey(reader.ReadString()); this.fileType = (AssetFileType)reader.ReadInt32(); this.cacheVersion = reader.ReadInt32(); this.cachePath = reader.ReadString(); this.cryptType = (AssetFileCryptType)reader.ReadInt32(); this.strageType = AssetFileStrageType.Web; }
/// <summary> /// コンストラクタ /// </summary> /// <param name="path">ファイルパス</param> /// <param name="type">ファイルタイプ</param> /// <param name="strageType">置き場所のタイプ</param> /// <param name="isCrypt">キャッシュ時に暗号化するか</param> public AssetFileInfo(string path, AssetFileType type, AssetFileStrageType strageType, bool isCrypt, bool isAlreadyEncoded) { InitKey(path); this.fileType = type; this.strageType = strageType; this.cryptType = isCrypt ? AssetFileCryptType.Utage : AssetFileCryptType.None; this.filePath = Key; this.audioType = ExtensionUtil.GetAudioType(FilePath); this.IsAlreadyEncoded = isAlreadyEncoded; CheckCsvLoadFlag(); }
void InitSub(string path, AssetFileManagerSettings settings, ConvertFileListManager convertFileListManager) { InitKey(path); this.filePath = Key; //ファイル設定を取得 this.setting = settings.FindSettingFromPath(FilePath); if (FileType == AssetFileType.Csv && FilePathUtil.CheckExtentionWithOutDouble(FilePath, ExtensionUtil.TSV, ExtensionUtil.UtageFile)) { loadFlags |= AssetFileLoadFlags.Tsv; } //保存場所の設定 this.strageType = ParseStrageType(); //コンバートファイル情報を設定 if (convertFileListManager.IsInitialized) { SetConvertFileInfo(convertFileListManager); } }