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:

  • SenderId string - The unique identifier of player who triggered the event.
  • RoomId string - The unique identifier of the room.
  • PlayerId string - The unique identifier of the player who should receive the event. Could be omitted for broadcast.
  • Name KeyType - The unique identifier of the event type.
  • Parameters KeyValueCollection - 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,