rename XFactory.Regs to XFactory.Generators.

This commit is contained in:
iamboss 2026-05-23 21:23:11 +08:00
parent af599f36e6
commit 7e2a4b116a

View File

@ -25,7 +25,7 @@ namespace Sample.MachineTool
{ {
static DemoBuildMachineTool() static DemoBuildMachineTool()
{ {
XFactory.Regs.Add(XName, (xml, baseDirectory, relFile, progress, res) => new DemoBuildMachineTool()); XFactory.Generators.Add(XName, (xml, baseDirectory, relFile, progress, res) => new DemoBuildMachineTool());
} }
/// <summary> /// <summary>
/// Generates an XYZ-ABC machine tool instance from embedded resources. /// Generates an XYZ-ABC machine tool instance from embedded resources.