1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Expose a default TeamVs room state so it can be consumed by tests

This commit is contained in:
Dean Herbert 2021-08-02 17:06:55 +09:00
parent c7274355a4
commit d93421b9b8

View File

@ -13,5 +13,15 @@ namespace osu.Game.Online.Multiplayer.MatchRulesets.TeamVs
{
[Key(0)]
public List<MultiplayerTeam> Teams { get; set; } = new List<MultiplayerTeam>();
public static TeamVsMatchRoomState CreateDefault() =>
new TeamVsMatchRoomState
{
Teams =
{
new MultiplayerTeam { ID = 0, Name = "Team Red" },
new MultiplayerTeam { ID = 1, Name = "Team Blue" },
}
};
}
}