Skip to content

Commit d8e808d

Browse files
committed
Shorten names a bit more for readability
1 parent f321238 commit d8e808d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default)
129129
// Define name processors
130130
var nameProcessors = new INameProcessor[]
131131
{
132-
new StripAffixesNameProcessor(nameAffixer),
132+
new StripAffixesProcessor(nameAffixer),
133133
new NameTrimmer(),
134-
new PrettifyNameProcessor(namePrettifier),
135-
new ReapplyAffixesNameProcessor(nameAffixer),
136-
new PrefixIfStartsWithNumberNameProcessor(),
134+
new PrettifyProcessor(namePrettifier),
135+
new ReapplyAffixesProcessor(nameAffixer),
136+
new PrefixIfStartsWithNumberProcessor(),
137137
};
138138

139139
// Create a type name dictionary to trim the type names.
@@ -1201,7 +1201,7 @@ Dictionary<string, NameAffixConfiguration> config
12011201
/// Removes affixes from the specified primary name and adds the original specified primary to the secondary list if provided.
12021202
/// </summary>
12031203
/// <remarks>
1204-
/// Designed to be used by either <see cref="ApplyPrettifyOnlyPipeline"/> or <see cref="StripAffixesNameProcessor"/>.
1204+
/// Designed to be used by either <see cref="ApplyPrettifyOnlyPipeline"/> or <see cref="StripAffixesProcessor"/>.
12051205
/// </remarks>
12061206
/// <param name="primary">The current primary name.</param>
12071207
/// <param name="container">The container name. Either null or the containing type.</param>
@@ -1234,7 +1234,7 @@ public string RemoveAffixes(
12341234
/// Applies affixes to the specified primary name and adds fallbacks to the secondary list if provided.
12351235
/// </summary>
12361236
/// <remarks>
1237-
/// Designed to be used by either <see cref="ApplyPrettifyOnlyPipeline"/> or <see cref="ReapplyAffixesNameProcessor"/>.
1237+
/// Designed to be used by either <see cref="ApplyPrettifyOnlyPipeline"/> or <see cref="ReapplyAffixesProcessor"/>.
12381238
/// </remarks>
12391239
/// <param name="primary">The current primary name.</param>
12401240
/// <param name="container">The container name. Either null or the containing type.</param>
@@ -1398,9 +1398,9 @@ private NameAffixConfiguration GetConfiguration(string category) =>
13981398

13991399
/// <summary>
14001400
/// Removes identified affixes so that other name processors can process the base name separately.
1401-
/// These affixes should be reapplied by <see cref="ReapplyAffixesNameProcessor"/>.
1401+
/// These affixes should be reapplied by <see cref="ReapplyAffixesProcessor"/>.
14021402
/// </summary>
1403-
private class StripAffixesNameProcessor(PrettifyNamesAffixer affixer) : INameProcessor
1403+
private class StripAffixesProcessor(PrettifyNamesAffixer affixer) : INameProcessor
14041404
{
14051405
public void ProcessNames(NameProcessorContext context)
14061406
{
@@ -1430,7 +1430,7 @@ public void ProcessNames(NameProcessorContext context)
14301430
}
14311431
}
14321432

1433-
private class PrettifyNameProcessor(NamePrettifier namePrettifier) : INameProcessor
1433+
private class PrettifyProcessor(NamePrettifier namePrettifier) : INameProcessor
14341434
{
14351435
public void ProcessNames(NameProcessorContext context)
14361436
{
@@ -1455,7 +1455,7 @@ public void ProcessNames(NameProcessorContext context)
14551455
/// <summary>
14561456
/// Reapplies and transforms identified affixes based on <see cref="NameAffixConfiguration"/>.
14571457
/// </summary>
1458-
private class ReapplyAffixesNameProcessor(PrettifyNamesAffixer affixer) : INameProcessor
1458+
private class ReapplyAffixesProcessor(PrettifyNamesAffixer affixer) : INameProcessor
14591459
{
14601460
public void ProcessNames(NameProcessorContext context)
14611461
{
@@ -1485,7 +1485,7 @@ public void ProcessNames(NameProcessorContext context)
14851485
}
14861486
}
14871487

1488-
private class PrefixIfStartsWithNumberNameProcessor : INameProcessor
1488+
private class PrefixIfStartsWithNumberProcessor : INameProcessor
14891489
{
14901490
public void ProcessNames(NameProcessorContext context)
14911491
{

0 commit comments

Comments
 (0)