private void AddDir(string abname, string dir, string file_ext) { PackData data = new PackData() { abname = abname, }; string[] fls = Directory.GetFiles(dir, file_ext, SearchOption.TopDirectoryOnly); data.assetfiles = new string[fls.Length]; for (int i = 0; i < fls.Length; i++) { string fl = fls[i].Replace('\\', '/'); data.assetfiles[i] = fl; } packList.Add(data); }
public AssetPackFileImpl(PackData data) { m_data = data; }