예제 #1
0
 /// <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;
 }
예제 #2
0
 public TestCommandHandler(IVehiclePool vehiclePool)
 {
     this.vehiclePool = vehiclePool;
 }