mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 00:33:22 +08:00
Restructure lookup code to avoid repeating the base call
This commit is contained in:
parent
fbc316ea1d
commit
50d71faf56
@ -35,9 +35,8 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
}
|
||||
}
|
||||
|
||||
if (!(component is CatchSkinComponent catchSkinComponent))
|
||||
return Source.GetDrawableComponent(component);
|
||||
|
||||
if (component is CatchSkinComponent catchSkinComponent)
|
||||
{
|
||||
switch (catchSkinComponent.Component)
|
||||
{
|
||||
case CatchSkinComponents.Fruit:
|
||||
@ -75,12 +74,12 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
return new LegacyCatchComboCounter(Source);
|
||||
|
||||
return null;
|
||||
|
||||
default:
|
||||
return Source.GetDrawableComponent(component);
|
||||
}
|
||||
}
|
||||
|
||||
return Source.GetDrawableComponent(component);
|
||||
}
|
||||
|
||||
public override IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
|
||||
{
|
||||
switch (lookup)
|
||||
|
Loading…
Reference in New Issue
Block a user