mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 13:22:55 +08:00
apply code inspection fixes
This commit is contained in:
parent
cc3468b4ab
commit
c56b34d2da
@ -224,7 +224,7 @@ namespace osu.Game.Rulesets
|
|||||||
public abstract string ShortName { get; }
|
public abstract string ShortName { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public virtual string PlayingVerb => "Playing";
|
public virtual string PlayingVerb => "Playing";
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Users
|
|||||||
public override string Status => "Choosing a beatmap";
|
public override string Status => "Choosing a beatmap";
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class InGame : UserActivity
|
public class InGame : UserActivity
|
||||||
{
|
{
|
||||||
public BeatmapInfo Beatmap { get; }
|
public BeatmapInfo Beatmap { get; }
|
||||||
|
|
||||||
@ -36,6 +36,8 @@ namespace osu.Game.Users
|
|||||||
Beatmap = info;
|
Beatmap = info;
|
||||||
Ruleset = ruleset;
|
Ruleset = ruleset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string Status => Ruleset.CreateInstance().PlayingVerb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class InMultiplayerGame : InGame
|
public class InMultiplayerGame : InGame
|
||||||
@ -45,7 +47,7 @@ namespace osu.Game.Users
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Status => $@"{Ruleset.CreateInstance().PlayingVerb} with others";
|
public override string Status => $@"{base.Status} with others";
|
||||||
}
|
}
|
||||||
|
|
||||||
public class InSoloGame : InGame
|
public class InSoloGame : InGame
|
||||||
@ -54,8 +56,6 @@ namespace osu.Game.Users
|
|||||||
: base(info, ruleset)
|
: base(info, ruleset)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Status => Ruleset.CreateInstance().PlayingVerb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Editing : UserActivity
|
public class Editing : UserActivity
|
||||||
|
Loading…
Reference in New Issue
Block a user