1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

Move GameplayState usage to BDL

This commit is contained in:
Dean Herbert 2023-03-07 17:01:29 +09:00
parent d98199961b
commit 5e90b67be0

View File

@ -12,9 +12,6 @@ namespace osu.Game.Screens.Play.HUD
{
public partial class PlayerFlag : CompositeDrawable, ISerialisableDrawable
{
[Resolved]
private GameplayState gameplayState { get; set; } = null!;
private readonly UpdateableFlag flag;
private const float default_size = 40f;
@ -28,10 +25,9 @@ namespace osu.Game.Screens.Play.HUD
};
}
protected override void LoadComplete()
[BackgroundDependencyLoader]
private void load(GameplayState gameplayState)
{
base.LoadComplete();
flag.CountryCode = gameplayState.Score.ScoreInfo.User.CountryCode;
}