Interface IPlayerInputJoinGateSettings
Interface for player input join gate settings.
Namespace: Serenity.InputGateway.Global.Domain.Interfaces
Assembly: Serenity.InputGateway.Domain.dll
Syntax
public interface IPlayerInputJoinGateSettings : IFoundationSettings
Methods
Allow(string, string, IReadOnlyList<PlayerInputSlot>)
Determines whether a device is allowed to join based on join rules and the current player slots.
Declaration
bool Allow(string deviceId, string layout, IReadOnlyList<PlayerInputSlot> currentSlots)
Parameters
| Type | Name | Description |
|---|---|---|
| string | deviceId | The unique identifier of the device. |
| string | layout | The layout of the device attempting to join. |
| IReadOnlyList<PlayerInputSlot> | currentSlots | The current player input slots. |
Returns
| Type | Description |
|---|---|
| bool | True if the device is allowed to join; otherwise, false. |