import Package from "../../data/Package"; import {TemplateSystem} from "../../TemplateSystem"; import Path from "../../Path"; import Ts3PathTemplate from "./Ts3PathTemplate"; import Ts3PathOut from "./Ts3PathOut"; export default class Ts3ExportGuiPackageNames { public static Export(packageList: Package[]) { let list = []; for(let pkg of packageList) { // if(pkg.genCode) list.push([pkg.codeFolderName,pkg.name]); } let template: TemplateSystem = new TemplateSystem(Path.ReadTxt(Ts3PathTemplate.FguiPackageNames)); template.AddVariable("packlist",list); let content = template.Parse(); let path = Ts3PathOut.FguiPackageNames; Path.CheckPath(path); Path.WriteTxt(path,content); } }