Room Connection Handler

This class provides a set of methods that listen for network events related to room operations.

Methods

  1. OnServerCreateRoom(Action<NetworkConnectionToClient, RoomInfo> callback)
    • This method is used to determine the function that will run when a room is created on the server side. This function is called when a room is created by a client.

  2. OnServerJoinRoom(Action<NetworkConnectionToClient, string> callback)
    • This method is used to determine the function that will run when joining a room on the server side. This function is called by a client when it joins the room.

  3. OnServerExitRoom(Action<NetworkConnectionToClient, bool> callback)
    • This method is used to determine the function that will run when a room exit occurs on the server side. This function is called when a client leaves the room.

  4. OnClientRoomListAdd(Action<RoomInfo> callback)
    • This method is used to determine the function that will run when added to the room on the client side. This function is called when a room is added to the client.

  5. OnClientRoomListUpdate(Action<RoomInfo> callback)
    • This method is used to determine the function that will run when the room list is updated on the client side. This function is called when the room list is updated.

  6. OnClientRoomListRemove(Action<RoomInfo> callback)
    • This method is used on the client side to determine the function that will run when a room is removed from the list. This function is called when a room is removed from the list.

  7. OnClientConnectionMessage(Action<int> callback)
    • This method is used to determine the function that will run when a connection message is received on the client side. This function is called when a connection message is received by a client.

Last updated