【修复】从service.manager中获得Tables管理类的类名,而不是写死为Tables。

main
walon 2021-12-03 18:10:09 +08:00
parent a6a1d58159
commit 79d52c8820
3 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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