mirror of https://github.com/ppy/osu
Compare GameTypes by type instead of reference.
This commit is contained in:
parent
24ba8261a1
commit
93b61840c8
|
@ -14,6 +14,9 @@ public abstract class GameType
|
|||
{
|
||||
public abstract string Name { get; }
|
||||
public abstract Drawable GetIcon(OsuColour colours, float size);
|
||||
|
||||
public override int GetHashCode() => GetType().GetHashCode();
|
||||
public override bool Equals(object obj) => GetType() == obj?.GetType();
|
||||
}
|
||||
|
||||
public class GameTypeTag : GameType
|
||||
|
|
Loading…
Reference in New Issue