Add more ToString output

This commit is contained in:
Dean Herbert 2018-07-19 18:43:11 +09:00
parent 332c62f110
commit 693ba8e994
2 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,8 @@ public IBeatmap GetPlayableBeatmap(RulesetInfo ruleset)
return converted;
}
public override string ToString() => BeatmapInfo.ToString();
public bool BackgroundLoaded => background.IsResultAvailable;
public Texture Background => background.Value.Result;
public async Task<Texture> GetBackgroundAsync() => await background.Value;

View File

@ -25,5 +25,7 @@ public class RulesetInfo : IEquatable<RulesetInfo>
public virtual Ruleset CreateInstance() => (Ruleset)Activator.CreateInstance(Type.GetType(InstantiationInfo), this);
public bool Equals(RulesetInfo other) => other != null && ID == other.ID && Available == other.Available && Name == other.Name && InstantiationInfo == other.InstantiationInfo;
public override string ToString() => $"{Name} ({ShortName}) ID: {ID}";
}
}