/// <summary> /// Initializes a new instance of the <see cref="PlayerEventListener"/> class. /// </summary> /// <param name="eventAggregator">Needed eventaggregator for this instance.</param> /// <param name="logger">Needed logger for this instance.</param> /// <param name="playerPool">Needed playerpool for this instance.</param> public PlayerEventListener(IEventAggregator eventAggregator, ILogger <PlayerEventListener> logger, IPlayerPool playerPool) : base(eventAggregator) { this.eventAggregator = eventAggregator; this.logger = logger; this.playerPool = playerPool; }
/// <summary> /// Initializes a new instance of the <see cref="VehicleEventListener"/> class. /// </summary> /// <param name="logger">Logger of this listener.</param> /// <param name="vehiclePool">Pool instance that will be used.</param> /// <param name="playerPool">Pool instance for players to resove players.</param> /// <param name="eventAggregator">Eventaggregator to attach the events to.</param> public VehicleEventListener(ILogger <VehicleEventListener> logger, IVehiclePool vehiclePool, IPlayerPool playerPool, IEventAggregator eventAggregator) : base(eventAggregator) { this.logger = logger; this.vehiclePool = vehiclePool; this.playerPool = playerPool; this.eventAggregator = eventAggregator; }
public LineupManager( IPlayerPool playerPool, IGameStatsRepository gameStatsRepository) { PlayerPool = playerPool; GameStatsRepository = gameStatsRepository; LineupValid = true; }
/// <summary> /// Initializes a new instance of the <see cref="RconEventListeners"/> class. /// </summary> /// <param name="eventAggregator">Eventaggregator where the needed event will be published.</param> /// <param name="playerPool">Pool where the player is registered in.</param> /// <param name="logger">Logger for warnings of this listener.</param> public RconEventListeners(IEventAggregator eventAggregator, IPlayerPool playerPool, ILogger <RconEventListeners> logger) { this.eventAggregator = eventAggregator; this.playerPool = playerPool; this.logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="PlayerTypeConverter"/> class. /// </summary> /// <param name="playerPool">Needed player pool for checks.</param> public PlayerTypeConverter(IPlayerPool playerPool) { this.playerPool = playerPool; }
public PlayersController(IPlayerPool pool) { _pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="PlayerPoolListener"/> class. /// </summary> /// <param name="eventAggregator"><see cref="IEventAggregator"/> which receives needed player pool events.</param> /// <param name="playerPool">Current player pool instance.</param> /// <param name="logger">Logger for this listener.</param> public PlayerPoolListener(IEventAggregator eventAggregator, IPlayerPool playerPool, ILogger <PlayerPoolListener> logger) { this.eventAggregator = eventAggregator; this.playerPool = playerPool; this.logger = logger; }
public TeamsController(ITeamList list, IPlayerPool pool) { _list = list; _pool = pool; }