mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Move GameplayState
usage to BDL
This commit is contained in:
parent
d98199961b
commit
5e90b67be0
@ -12,9 +12,6 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
public partial class PlayerFlag : CompositeDrawable, ISerialisableDrawable
|
public partial class PlayerFlag : CompositeDrawable, ISerialisableDrawable
|
||||||
{
|
{
|
||||||
[Resolved]
|
|
||||||
private GameplayState gameplayState { get; set; } = null!;
|
|
||||||
|
|
||||||
private readonly UpdateableFlag flag;
|
private readonly UpdateableFlag flag;
|
||||||
|
|
||||||
private const float default_size = 40f;
|
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;
|
flag.CountryCode = gameplayState.Score.ScoreInfo.User.CountryCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user