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 aRoomInfo
parameter.
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 aNetworkConnectio
n 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
OnServerCreatedRoom
event.This method calls subscribers to the
OnServerCreatedRoom
event and is passed with a RoomInfo parameter.
Invoke_OnServerJoinedClient()
A method used to trigger the
OnServerJoinedRoom
event.This method calls subscribers to the
OnServerJoinedRoom
event and is passed with aNetworkConnection
parameter.
Invoke_OnServerExitedClient()
A method used to trigger the
OnServerExitedRoom
event.This method calls subscribers to the
OnServerExitedRoom
event and is passed with a NetworkConnection parameter.
Invoke_OnServerDisconnectedClient()
A method used to trigger the
OnServerDisconnectedRoom
event.This method calls subscribers to the
OnServerDisconnectedRoom
event and is passed with a NetworkConnection parameter.
Last updated