Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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();
 }