Server Room message

This structure is used to send room-related messages from the server to the clients.

Members:

  • public readonly RoomInfo RoomInfo:

    • A RoomInfo object representing information about the room.

  • public readonly ServerRoomState ServerRoomState:

    • A ServerRoomState value representing the state of the room on the server.

  • public readonly bool IsDisconnected:

    • True if the client's connection is disconnected, otherwise false.

Methods:

  1. public ServerRoomMessage(ServerRoomState serverRoomState,
    RoomInfo roomInfo,
    bool isDisconnected = false)
    • Initializes the structure and takes the necessary information.

Last updated