mirror of https://github.com/ppy/osu
apply code inspection fixes
This commit is contained in:
parent
cc3468b4ab
commit
c56b34d2da
|
@ -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";
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue