mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Compare GameTypes by type instead of reference.
This commit is contained in:
parent
24ba8261a1
commit
93b61840c8
@ -14,6 +14,9 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
{
|
{
|
||||||
public abstract string Name { get; }
|
public abstract string Name { get; }
|
||||||
public abstract Drawable GetIcon(OsuColour colours, float size);
|
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
|
public class GameTypeTag : GameType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user