mirror of
https://github.com/osukey/osukey.git
synced 2025-06-19 02:07:55 +09:00
style(KeyCounterDisplay): remove type check
This commit is contained in:
parent
d0e8d65766
commit
c94e647e21
@ -29,15 +29,10 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public override void Add(KeyCounter key)
|
public override void Add(KeyCounter key)
|
||||||
{
|
{
|
||||||
if (!CheckType(key))
|
|
||||||
throw new ArgumentException($"{key.GetType()} is not a supported {nameof(KeyCounter)}.", nameof(key));
|
|
||||||
|
|
||||||
base.Add(key);
|
base.Add(key);
|
||||||
key.IsCounting = IsCounting;
|
key.IsCounting = IsCounting;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual bool CheckType(KeyCounter key) => true;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user