Room Info

This structure contains basic information about a room.

Members:

  • public string Name:

    • Represents the name of the room.

  • public string SceneName:

    • Represents the name of the scene associated with the room.

  • public int MaxPlayers:

    • Specifies the maximum number of players that can be in the room.

  • public int CurrentPlayers:

    • Indicates the current number of players in the room.

  • public List<int> ConnectionIds:

    • Contains a list of connection IDs for players connected to the room.

Methods:

  1. public RoomInfo(string name, int maxPlayers, int currentPlayers, List<int> connectionIds = default)
    • Initializes the structure and takes the necessary information.

Last updated