Room List Utility

This class provides helper methods related to the list of rooms.

Methods

  1. public static RoomInfo ConvertToRoomList(Room room)
    • Parameters:

      • room: The room object to be converted.

    Converts the given room object to a RoomInfo object.

  2. 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.

  3. 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.

  4. 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