/// <summary> /// construct:ローカルの保存バイナリデータからの作成 /// </summary> public AssetBundleOperation(BinaryReader reader) { this.name = reader.ReadString(); this.localCRC = reader.ReadUInt32(); this.path = Define.GetLocalAssetBundleDirectoryPath() + "/" + this.name + ".dat"; }
/// <summary> /// construct:サーバーのCSVデータからの作成 /// </summary> public AssetBundleOperation(string[] csv) { this.name = csv[0]; this.serverCRC = uint.Parse(csv[1]); this.path = Define.GetLocalAssetBundleDirectoryPath() + "/" + this.name + ".dat"; }
/// <summary> /// サーバーのアセットバンドルディレクトリURLを設定する /// </summary> public void SetServerAssetBundleDirectoryUrl(string url) { this.serverAssetBundleDirectoryUrl = url; this.serverResourceListUrl = url + "/ResourceList.csv"; this.localResourceListPath = Define.GetLocalAssetBundleDirectoryPath() + "/ResourceList.dat"; }