Esempio n. 1
0
 /// <summary>
 ///     Raises the <see cref="PlayerStreamOut" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="PlayerEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerStreamOut(GtaPlayer player, PlayerEventArgs e)
 {
     if (PlayerStreamOut != null)
         PlayerStreamOut(player, e);
 }
Esempio n. 2
0
 /// <summary>
 ///     Raises the <see cref="ActorStreamOut" /> event.
 /// </summary>
 /// <param name="actor">The actor.</param>
 /// <param name="e">The <see cref="PlayerEventArgs" /> instance containing the event data.</param>
 protected void OnActorStreamOut(Actor actor, PlayerEventArgs e)
 {
     if (ActorStreamOut != null)
         ActorStreamOut(actor, e);
 }
Esempio n. 3
0
 /// <summary>
 ///     Raises the <see cref="PlayerPickUpPickup" /> event.
 /// </summary>
 /// <param name="pickup">The pickup triggering the event.</param>
 /// <param name="e">An <see cref="PlayerEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerPickUpPickup(Pickup pickup, PlayerEventArgs e)
 {
     if (PlayerPickUpPickup != null)
         PlayerPickUpPickup(pickup, e);
 }
Esempio n. 4
0
 /// <summary>
 ///     Raises the <see cref="VehicleDied" /> event.
 /// </summary>
 /// <param name="vehicle">The vehicle triggering the event.</param>
 /// <param name="e">An <see cref="PlayerEventArgs" /> that contains the event data. </param>
 protected virtual void OnVehicleDied(GtaVehicle vehicle, PlayerEventArgs e)
 {
     if (VehicleDied != null)
         VehicleDied(vehicle, e);
 }
Esempio n. 5
0
 /// <summary>
 ///     Raises the <see cref="VehicleStreamOut" /> event.
 /// </summary>
 /// <param name="vehicle">The vehicle triggering the event.</param>
 /// <param name="e">An <see cref="PlayerVehicleEventArgs" /> that contains the event data. </param>
 protected virtual void OnVehicleStreamOut(GtaVehicle vehicle, PlayerEventArgs e)
 {
     if (VehicleStreamOut != null)
         VehicleStreamOut(vehicle, e);
 }
Esempio n. 6
0
 /// <summary>
 ///     Raises the <see cref="VehicleStreamOut" /> event.
 /// </summary>
 /// <param name="vehicle">The vehicle triggering the event.</param>
 /// <param name="e">An <see cref="PlayerVehicleEventArgs" /> that contains the event data. </param>
 protected virtual void OnVehicleStreamOut(BaseVehicle vehicle, PlayerEventArgs e)
 {
     VehicleStreamOut?.Invoke(vehicle, e);
 }
Esempio n. 7
0
 /// <summary>
 ///     Raises the <see cref="VehicleDamageStatusUpdated" /> event.
 /// </summary>
 /// <param name="vehicle">The vehicle triggering the event.</param>
 /// <param name="e">An <see cref="PlayerVehicleEventArgs" /> that contains the event data. </param>
 protected virtual void OnVehicleDamageStatusUpdated(GtaVehicle vehicle, PlayerEventArgs e)
 {
     if (VehicleDamageStatusUpdated != null)
         VehicleDamageStatusUpdated(vehicle, e);
 }
Esempio n. 8
0
 /// <summary>
 ///     Raises the <see cref="PlayerStreamOut" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="PlayerEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerStreamOut(BasePlayer player, PlayerEventArgs e)
 {
     PlayerStreamOut?.Invoke(player, e);
 }
Esempio n. 9
0
 /// <summary>
 ///     Raises the <see cref="VehicleDamageStatusUpdated" /> event.
 /// </summary>
 /// <param name="vehicle">The vehicle triggering the event.</param>
 /// <param name="e">An <see cref="PlayerVehicleEventArgs" /> that contains the event data. </param>
 protected virtual void OnVehicleDamageStatusUpdated(BaseVehicle vehicle, PlayerEventArgs e)
 {
     VehicleDamageStatusUpdated?.Invoke(vehicle, e);
 }
Esempio n. 10
0
 /// <summary>
 ///     Raises the <see cref="PlayerPickUpPickup" /> event.
 /// </summary>
 /// <param name="pickup">The pickup triggering the event.</param>
 /// <param name="e">An <see cref="PlayerEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerPickUpPickup(Pickup pickup, PlayerEventArgs e)
 {
     PlayerPickUpPickup?.Invoke(pickup, e);
 }
Esempio n. 11
0
 /// <summary>
 ///     Raises the <see cref="VehicleDied" /> event.
 /// </summary>
 /// <param name="vehicle">The vehicle triggering the event.</param>
 /// <param name="e">An <see cref="PlayerEventArgs" /> that contains the event data. </param>
 protected virtual void OnVehicleDied(BaseVehicle vehicle, PlayerEventArgs e)
 {
     VehicleDied?.Invoke(vehicle, e);
 }
Esempio n. 12
0
 /// <summary>
 ///     Raises the <see cref="ActorStreamOut" /> event.
 /// </summary>
 /// <param name="actor">The actor.</param>
 /// <param name="e">The <see cref="PlayerEventArgs" /> instance containing the event data.</param>
 protected void OnActorStreamOut(Actor actor, PlayerEventArgs e)
 {
     ActorStreamOut?.Invoke(actor, e);
 }