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