mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Exclude interfaces from skinnable types
This commit is contained in:
parent
7921930a92
commit
0d7a349500
@ -57,7 +57,10 @@ namespace osu.Game.Skinning.Editor
|
||||
Spacing = new Vector2(20)
|
||||
};
|
||||
|
||||
var skinnableTypes = typeof(OsuGame).Assembly.GetTypes().Where(t => typeof(ISkinnableDrawable).IsAssignableFrom(t)).ToArray();
|
||||
var skinnableTypes = typeof(OsuGame).Assembly.GetTypes()
|
||||
.Where(t => !t.IsInterface)
|
||||
.Where(t => typeof(ISkinnableDrawable).IsAssignableFrom(t))
|
||||
.ToArray();
|
||||
|
||||
foreach (var type in skinnableTypes)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user