Room Message Utility

This class provides helper methods for sending room messages.

Methods

  1. public static void SenRoomUpdateMessage(RoomInfo roomInfo, RoomMessageState state)
    • Paramters:

      • roomInfo: Updated room information.

      • state: The status of the room message.

    • Creates RoomListChangeMessage and sends this message to all connections.

  2. public static void SendRoomMessage(NetworkConnection conn, ClientRoomState state)
    • Paramters:

      • conn: The network connection to send the message to.

      • state: The client's room status.

    • Creates ClientRoomMessage and sends this message to the specified network connection.

Last updated