【修复】从service.manager中获得Tables管理类的类名,而不是写死为Tables。
parent
a6a1d58159
commit
79d52c8820
|
|
@ -34,6 +34,8 @@ namespace Luban.Job.Cfg.Defs
|
||||||
|
|
||||||
public bool OutputCompactJson { get; set; }
|
public bool OutputCompactJson { get; set; }
|
||||||
|
|
||||||
|
public string TableManagerName => CfgTargetService.Manager;
|
||||||
|
|
||||||
public DefAssembly(string patchName, TimeZoneInfo timezone, List<string> excludeTags, IAgent agent)
|
public DefAssembly(string patchName, TimeZoneInfo timezone, List<string> excludeTags, IAgent agent)
|
||||||
{
|
{
|
||||||
this._patchName = patchName;
|
this._patchName = patchName;
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ namespace Luban.Job.Cfg.Generate
|
||||||
fileContent.Add(ctx.Render.RenderAny(type));
|
fileContent.Add(ctx.Render.RenderAny(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
fileContent.Add(ctx.Render.RenderService("Tables", ctx.TopModule, ctx.ExportTables));
|
fileContent.Add(ctx.Render.RenderService(ctx.Assembly.TableManagerName, ctx.TopModule, ctx.ExportTables));
|
||||||
postContent?.Invoke(fileContent);
|
postContent?.Invoke(fileContent);
|
||||||
|
|
||||||
var file = outputFile;
|
var file = outputFile;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ namespace {ctx.TopModule}
|
||||||
headerFileContent.Add(Render(type));
|
headerFileContent.Add(Render(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
headerFileContent.Add(RenderService("Tables", ctx.TopModule, ctx.ExportTables));
|
headerFileContent.Add(RenderService(ctx.Assembly.TableManagerName, ctx.TopModule, ctx.ExportTables));
|
||||||
|
|
||||||
headerFileContent.Add("}"); // end of topmodule
|
headerFileContent.Add("}"); // end of topmodule
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue