fix(BuildCalc) Immortal filters

This commit is contained in:
2022-04-14 00:11:50 -04:00
parent a04a75a8fd
commit 231ce16dd6
11 changed files with 51 additions and 50 deletions
+6 -8
View File
@@ -7,13 +7,16 @@ public class KeyService : IKeyService {
private string? _hotkey;
private string _hotkeyGroup = "C";
private bool _isHoldingSpace;
private event Action? OnChange;
public void Subscribe(Action? action) {
_onChange += action;
OnChange += action;
}
public void Unsubscribe(Action? action) {
_onChange -= action;
OnChange -= action;
}
public bool AddPressedKey(string key) {
@@ -82,13 +85,8 @@ public class KeyService : IKeyService {
return _hotkeyGroup;
}
private event Action? _onChange;
private void NotifyDataChanged() {
_onChange?.Invoke();
OnChange?.Invoke();
}
public Action? OnChange() {
return _onChange;
}
}