OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class UnturnedVehicleReplacingBatteryEvent

The event that is triggered when a player is replacing a vehicles battery.

Inheritance
System.Object
UnturnedVehicleEvent
UnturnedVehicleReplacingBatteryEvent
Implements
IVehicleEvent
IEvent
ICancellableEvent
Inherited Members
UnturnedVehicleEvent.Vehicle
UnturnedVehicleEvent.IVehicleEvent.Vehicle
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleReplacingBatteryEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent

Constructors

| Improve this Doc View Source

UnturnedVehicleReplacingBatteryEvent(UnturnedPlayer, UnturnedVehicle, Byte, Guid)

Declaration
public UnturnedVehicleReplacingBatteryEvent(UnturnedPlayer instigator, UnturnedVehicle vehicle, byte batteryQuality, Guid batteryItemGuid)
Parameters
Type Name Description
UnturnedPlayer instigator
UnturnedVehicle vehicle
System.Byte batteryQuality
Guid batteryItemGuid

Properties

| Improve this Doc View Source

BatteryItemGuid

Gets the Guid of the new battery item.

Declaration
public Guid BatteryItemGuid { get; }
Property Value
Type Description
Guid
| Improve this Doc View Source

BatteryQuality

Gets the new battery quality value.

Declaration
public byte BatteryQuality { get; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

Instigator

Gets the player replacing the battery.

Declaration
public UnturnedPlayer Instigator { get; }
Property Value
Type Description
UnturnedPlayer
| Improve this Doc View Source

IsCancelled

Declaration
public bool IsCancelled { get; set; }
Property Value
Type Description
System.Boolean

Implements

IVehicleEvent
IEvent
ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)