apply code inspection fixes

This commit is contained in:
Nathan Alo 2021-08-16 07:06:23 +08:00
parent cc3468b4ab
commit c56b34d2da
2 changed files with 5 additions and 5 deletions

View File

@ -224,7 +224,7 @@ public PerformanceCalculator CreatePerformanceCalculator(WorkingBeatmap beatmap,
public abstract string ShortName { get; }
/// <summary>
/// The playing verb to be shown in the <see cref="UserActivity.InSoloGame.Status"/>.
/// The playing verb to be shown in the <see cref="UserActivity.InGame.Status"/>.
/// </summary>
public virtual string PlayingVerb => "Playing";

View File

@ -25,7 +25,7 @@ public class ChoosingBeatmap : UserActivity
public override string Status => "Choosing a beatmap";
}
public abstract class InGame : UserActivity
public class InGame : UserActivity
{
public BeatmapInfo Beatmap { get; }
@ -36,6 +36,8 @@ public InGame(BeatmapInfo info, RulesetInfo ruleset)
Beatmap = info;
Ruleset = ruleset;
}
public override string Status => Ruleset.CreateInstance().PlayingVerb;
}
public class InMultiplayerGame : InGame
@ -45,7 +47,7 @@ public InMultiplayerGame(BeatmapInfo beatmap, RulesetInfo ruleset)
{
}
public override string Status => $@"{Ruleset.CreateInstance().PlayingVerb} with others";
public override string Status => $@"{base.Status} with others";
}
public class InSoloGame : InGame
@ -54,8 +56,6 @@ public InSoloGame(BeatmapInfo info, RulesetInfo ruleset)
: base(info, ruleset)
{
}
public override string Status => Ruleset.CreateInstance().PlayingVerb;
}
public class Editing : UserActivity