Room Event Manager
This class defines various events and provides functions to trigger these events.
Methods
OnServerCreatedRoom()This is the event that will be triggered when a room is created on the server side.
An event of type
Action<RoomInfo>. Subscribers to this event will be called with aRoomInfoparameter.
OnServerJoinedRoom()This is the event that will be triggered when a client joins the server in a room.
An event of type
Action<NetworkConnection>. Subscribers to this event will be called with aNetworkConnection parameter.
OnServerExitedRoom()This is the event that will be triggered when a client leaves a room from the server.
An event of type
Action<NetworkConnection>. Subscribers to this event will be called with a NetworkConnection parameter.
OnServerDisconnectedRoom()This is the event that will be triggered when a client loses connection from the server.
An event of type
Action<NetworkConnection>. Subscribers to this event will be called with a NetworkConnection parameter.
Invoke_OnServerCreatedRoom()A method used to trigger the
OnServerCreatedRoomevent.This method calls subscribers to the
OnServerCreatedRoomevent and is passed with a RoomInfo parameter.
Invoke_OnServerJoinedClient()A method used to trigger the
OnServerJoinedRoomevent.This method calls subscribers to the
OnServerJoinedRoomevent and is passed with aNetworkConnectionparameter.
Invoke_OnServerExitedClient()A method used to trigger the
OnServerExitedRoomevent.This method calls subscribers to the
OnServerExitedRoomevent and is passed with a NetworkConnection parameter.
Invoke_OnServerDisconnectedClient()A method used to trigger the
OnServerDisconnectedRoomevent.This method calls subscribers to the
OnServerDisconnectedRoomevent and is passed with a NetworkConnection parameter.
Last updated