Room Event Manager

This class defines various events and provides functions to trigger these events.

Methods

  1. OnServerCreatedRoom()
    1. This is the event that will be triggered when a room is created on the server side.

    2. An event of type Action<RoomInfo>. Subscribers to this event will be called with a RoomInfo parameter.

  2. OnServerJoinedRoom()
    1. This is the event that will be triggered when a client joins the server in a room.

    2. An event of type Action<NetworkConnection>. Subscribers to this event will be called with a NetworkConnection parameter.

  3. OnServerExitedRoom()
    1. This is the event that will be triggered when a client leaves a room from the server.

    2. An event of type Action<NetworkConnection>. Subscribers to this event will be called with a NetworkConnection parameter.

  4. OnServerDisconnectedRoom()
    1. This is the event that will be triggered when a client loses connection from the server.

    2. An event of type Action<NetworkConnection>. Subscribers to this event will be called with a NetworkConnection parameter.

  5. Invoke_OnServerCreatedRoom()
    1. A method used to trigger the OnServerCreatedRoom event.

    2. This method calls subscribers to the OnServerCreatedRoom event and is passed with a RoomInfo parameter.

  6. Invoke_OnServerJoinedClient()
    1. A method used to trigger the OnServerJoinedRoom event.

    2. This method calls subscribers to the OnServerJoinedRoom event and is passed with a NetworkConnection parameter.

  7. Invoke_OnServerExitedClient()
    1. A method used to trigger the OnServerExitedRoom event.

    2. This method calls subscribers to the OnServerExitedRoom event and is passed with a NetworkConnection parameter.

  8. Invoke_OnServerDisconnectedClient()
    1. A method used to trigger the OnServerDisconnectedRoom event.

    2. This method calls subscribers to the OnServerDisconnectedRoom event and is passed with a NetworkConnection parameter.

Last updated