static void BulkParseEepk(string directory) { string[] files = Directory.GetFiles(directory); foreach (string s in files) { if (Path.GetExtension(s) == ".eepk") { Console.WriteLine(s); var eepk = new Xv2CoreLib.EEPK.Parser(s, false).GetEepkFile(); if (eepk.Assets != null) { foreach (var e in eepk.Assets) { if (e.FILES[0] != "NULL" && e.I_16 == Xv2CoreLib.EEPK.AssetType.EMO) { Console.WriteLine("This"); Console.Read(); } } } } } }
static void BulkParseEepk(string directory) { string[] files = Directory.GetFiles(directory); List <string> bones = new List <string>(); foreach (string s in files) { if (Path.GetExtension(s) == ".eepk") { Console.WriteLine(s); var eepk = new Xv2CoreLib.EEPK.Parser(s, false).GetEepkFile(); if (eepk.Effects != null) { foreach (var effect in eepk.Effects) { if (effect.EffectParts != null) { foreach (var effectPart in effect.EffectParts) { string bone = $"\"{effectPart.ESK}\","; if (!bones.Contains(bone)) { bones.Add(bone); } } } } } } } StringBuilder str = new StringBuilder(); foreach (var bone in bones) { str.AppendLine(bone); } File.WriteAllText("eepk_bones.txt", str.ToString()); }