mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Ensure multiplayer rooms are instantiated with a room ID
This commit is contained in:
@ -17,7 +17,7 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ID of the room, used for database persistence.
|
/// The ID of the room, used for database persistence.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long RoomID { get; set; }
|
public readonly long RoomID;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current state of the room (ie. whether it is in progress or otherwise).
|
/// The current state of the room (ie. whether it is in progress or otherwise).
|
||||||
@ -41,6 +41,11 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
|||||||
|
|
||||||
private object writeLock = new object();
|
private object writeLock = new object();
|
||||||
|
|
||||||
|
public MultiplayerRoom(in long roomId)
|
||||||
|
{
|
||||||
|
RoomID = roomId;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Perform an update on this room in a thread-safe manner.
|
/// Perform an update on this room in a thread-safe manner.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user