protected int OnExecute(CommandLineApplication app) { OutputPath ??= Path.Combine(Path.GetDirectoryName(InputPath), $"{Path.GetFileNameWithoutExtension(InputPath)}.txt"); var spawnScript = File.OpenRead(InputPath).Using(Kh2.Ard.SpawnScript.Read); File.WriteAllText(OutputPath, SpawnScriptParser.Decompile(spawnScript)); return(0); }
SpawnScriptModel(string name, List <SpawnScript> spawnScripts) { _name = name; _spawnScripts = spawnScripts; Decompiled = SpawnScriptParser.Decompile(spawnScripts); }