refactor: tighten access modifiers on CommandHookModSystem

This commit is contained in:
2026-06-11 21:56:07 +02:00
parent e26ad1d541
commit cd583a0e95
+3 -3
View File
@@ -83,7 +83,7 @@ public class CommandHookModSystem : ModSystem
} }
} }
public void Rebuild() private void Rebuild()
{ {
var builder = new Dictionary<string, Dictionary<string, CommandRegistration>>(); var builder = new Dictionary<string, Dictionary<string, CommandRegistration>>();
@@ -122,7 +122,7 @@ public class CommandHookModSystem : ModSystem
registrations = pruned.ToFrozenDictionary(); registrations = pruned.ToFrozenDictionary();
} }
public bool FireBefore(string commandName, ref CommandData data) internal bool FireBefore(string commandName, ref CommandData data)
{ {
if (registrations.TryGetValue(commandName, out var mods)) if (registrations.TryGetValue(commandName, out var mods))
foreach (var (_, reg) in mods) foreach (var (_, reg) in mods)
@@ -131,7 +131,7 @@ public class CommandHookModSystem : ModSystem
return data.Cancel; return data.Cancel;
} }
public void FireAfter(string commandName, ref CommandData data, TextCommandResult result) internal void FireAfter(string commandName, ref CommandData data, TextCommandResult result)
{ {
if (registrations.TryGetValue(commandName, out var mods)) if (registrations.TryGetValue(commandName, out var mods))
foreach (var (_, reg) in mods) foreach (var (_, reg) in mods)