refactor: tighten access modifiers on CommandHookModSystem
This commit is contained in:
@@ -83,7 +83,7 @@ public class CommandHookModSystem : ModSystem
|
||||
}
|
||||
}
|
||||
|
||||
public void Rebuild()
|
||||
private void Rebuild()
|
||||
{
|
||||
var builder = new Dictionary<string, Dictionary<string, CommandRegistration>>();
|
||||
|
||||
@@ -122,7 +122,7 @@ public class CommandHookModSystem : ModSystem
|
||||
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))
|
||||
foreach (var (_, reg) in mods)
|
||||
@@ -131,7 +131,7 @@ public class CommandHookModSystem : ModSystem
|
||||
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))
|
||||
foreach (var (_, reg) in mods)
|
||||
|
||||
Reference in New Issue
Block a user