Compare GameTypes by type instead of reference.

This commit is contained in:
DrabWeb 2018-06-06 04:25:11 -03:00
parent 24ba8261a1
commit 93b61840c8
1 changed files with 3 additions and 0 deletions

View File

@ -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