Beispiel #1
0
        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);
        }
Beispiel #2
0
 public AssetPackFileImpl(PackData data)
 {
     m_data = data;
 }