OnRoomEventRaised
Name
OnRoomEventRaised - Raises when an event gets triggered in the room.
Synopsis
Namespace: LoadBalancer.Client.Game
protected CallResult OnRoomEventRaised(ClientCallContext call, RoomEvent parameters)
Parameters
ClientCallContext represents the call context.
RoomEvent consists of the following parameters:
SenderIdstring- The unique identifier of player who triggered the event.RoomIdstring- The unique identifier of the room.PlayerIdstring- The unique identifier of the player who should receive the event. Could be omitted for broadcast.NameKeyType- The unique identifier of the event type.ParametersKeyValueCollection- A collection of key-value pairs containing the event properties.
Return Value
The CallResult which can be one of the following values:
NotHandled = 0,
Completed = 1,
Failed = 2,
Reenqueued = 3,