1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Privatise mutable list

This commit is contained in:
smoogipoo 2021-08-17 09:48:33 +09:00
parent 5214731dc1
commit f2340c6dac

View File

@ -30,7 +30,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
[Resolved]
private OsuGameBase game { get; set; }
public readonly List<Room> ServerSideRooms = new List<Room>();
public IReadOnlyList<Room> ServerSideRooms => serverSideRooms;
private readonly List<Room> serverSideRooms = new List<Room>();
private int currentRoomId;
private int currentPlaylistItemId;
@ -133,7 +134,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
for (int i = 0; i < room.Playlist.Count; i++)
room.Playlist[i].ID = currentPlaylistItemId++;
ServerSideRooms.Add(room);
serverSideRooms.Add(room);
}
private Room createResponseRoom(Room room, bool withParticipants)