import Package from "../../data/Package"; import {TemplateSystem} from "../../TemplateSystem"; import TsPathTemplate from "./TsPathTemplate"; import Path from "../../Path"; import TsPathOut from "./TsPathOut"; export default class TSExportGuiPackageNames { 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(TsPathTemplate.FguiPackageNames)); template.AddVariable("packlist",list); let content = template.Parse(); let path = TsPathOut.FguiPackageNames; Path.CheckPath(path); Path.WriteTxt(path,content); } }