Room List Utility
This class provides helper methods related to the list of rooms.
Methods
public static RoomInfo ConvertToRoomList(Room room)
Parameters:
room
: The room object to be converted.
Converts the given room object to a
RoomInfo
object.public static void UpdateRoomToList(ref List<Room> rooms, Room room)
Parameters:
rooms
: The list of rooms.room
: The updated room object.
Replaces a specific room in the list of rooms with its updated version and sends this updated information to all connections.
public static void AddRoomToList(ref List<Room> rooms, Room room)
Parameters:
rooms
: The list of rooms.room
: The room object to be added.
Adds a new room to the list of rooms and sends this information to all connections.
public static void RemoveRoomToList(ref List<Room> rooms, Room room)
Parameters:
rooms
: The list of rooms.room
: The room object to be removed.
Removes a room from the list of rooms and sends this information to all connections.
Last updated