1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 12:07:51 +08:00
osu-lazer/osu.Game.Tests/Visual/Multiplayer/TestCaseMatchHostInfo.cs

36 lines
948 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
2019-02-21 18:04:31 +08:00
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Screens.Multi.Match.Components;
using osu.Game.Users;
2019-03-25 00:02:36 +08:00
namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestCaseMatchHostInfo : OsuTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(HostInfo)
};
2018-12-25 17:07:19 +08:00
private readonly Bindable<User> host = new Bindable<User>(new User { Username = "SomeHost" });
public TestCaseMatchHostInfo()
{
2018-12-25 17:07:19 +08:00
HostInfo hostInfo;
Child = hostInfo = new HostInfo
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre
};
2018-12-25 17:07:19 +08:00
hostInfo.Host.BindTo(host);
}
}
}