Use APIMod for mod serialization

This commit is contained in:
Dean Herbert
2020-10-22 17:38:16 +09:00
parent 0611b30258
commit c834aa6051
3 changed files with 13 additions and 8 deletions

View File

@ -53,5 +53,13 @@ namespace osu.Game.Online.API
}
public bool Equals(IMod other) => Acronym == other?.Acronym;
public override string ToString()
{
if (Settings.Count > 0)
return $"{Acronym} ({string.Join(',', Settings.Select(kvp => $"{kvp.Key}:{kvp.Value}"))})";
return $"{Acronym}";
}
}
}