Rename User to APIUser and move to correct namespace

This commit is contained in:
Dean Herbert
2021-11-04 18:02:44 +09:00
parent 69aa620ab7
commit 0ecf5f201c
195 changed files with 990 additions and 946 deletions

View File

@ -14,12 +14,12 @@ using osu.Framework.Testing;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Rooms;
using osu.Game.Rulesets;
using osu.Game.Screens.OnlinePlay.Multiplayer.Match;
using osu.Game.Tests.Resources;
using osu.Game.Users;
using osuTK;
using osuTK.Input;
@ -108,7 +108,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
AddStep("add second user as host", () =>
{
Client.AddUser(new User { Id = 2, Username = "Another user" });
Client.AddUser(new APIUser { Id = 2, Username = "Another user" });
Client.TransferHost(2);
});
@ -128,7 +128,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
Client.TransferHost(Client.Room?.Users[0].UserID ?? 0);
if (!allReady)
Client.AddUser(new User { Id = 2, Username = "Another user" });
Client.AddUser(new APIUser { Id = 2, Username = "Another user" });
});
addClickButtonStep();
@ -142,7 +142,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
AddStep("add host", () =>
{
Client.AddUser(new User { Id = 2, Username = "Another user" });
Client.AddUser(new APIUser { Id = 2, Username = "Another user" });
Client.TransferHost(2);
});
@ -158,7 +158,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddStep("setup", () =>
{
Client.TransferHost(Client.Room?.Users[0].UserID ?? 0);
Client.AddUser(new User { Id = 2, Username = "Another user" });
Client.AddUser(new APIUser { Id = 2, Username = "Another user" });
});
addClickButtonStep();
@ -177,7 +177,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
Client.TransferHost(Client.Room?.Users[0].UserID ?? 0);
for (int i = 0; i < users; i++)
Client.AddUser(new User { Id = i, Username = "Another user" });
Client.AddUser(new APIUser { Id = i, Username = "Another user" });
});
if (!isHost)