Room Event Manager
This class defines various events and provides functions to trigger these events.
Methods
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.
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.
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.
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.
A method used to trigger the
OnServerCreatedRoom
event.This method calls subscribers to the
OnServerCreatedRoom
event and is passed with a RoomInfo parameter.
A method used to trigger the
OnServerJoinedRoom
event.This method calls subscribers to the
OnServerJoinedRoom
event and is passed with aNetworkConnection
parameter.
A method used to trigger the
OnServerExitedRoom
event.This method calls subscribers to the
OnServerExitedRoom
event and is passed with a NetworkConnection parameter.
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