Class SalvageBarricadeRequested
- Namespace
- Uncreated.Warfare.Events.Models.Barricades
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles SDG.Unturned.BarricadeDrop.OnSalvageRequested_Global.
[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_inventory", "modify_world" })]
public sealed class SalvageBarricadeRequested : SalvageRequested, IPlayerEvent, ISalvageBuildableRequestedEvent, ICancellable, IBaseBuildableDestroyedEvent
- Inheritance
-
SalvageBarricadeRequested
- Implements
- Inherited Members
Properties
Barricade
The barricade's object and model data.
public required BarricadeDrop Barricade { get; init; }
Property Value
- BarricadeDrop
Buildable
Abstracted IBuildable of the barricade.
public override IBuildable Buildable { get; }
Property Value
IsCancelled
If this execution has been cancelled.
public override bool IsCancelled { get; }
Property Value
IsOnVehicle
If this barricade was placed on a vehicle.
public bool IsOnVehicle { get; }
Property Value
Region
The region the barricade was placed in. This could be of type SDG.Unturned.VehicleBarricadeRegion.
public required BarricadeRegion Region { get; init; }
Property Value
- BarricadeRegion
ServersideData
The barricade's server-side data.
public required BarricadeData ServersideData { get; init; }
Property Value
- BarricadeData
Transform
The Unity model of the barricade.
public override Transform Transform { get; }
Property Value
- Transform
VehicleRegionIndex
The index of the vehicle region in SDG.Unturned.BarricadeManager.vehicleRegions. MaxValue if the barricade is not planted.
public required ushort VehicleRegionIndex { get; init; }
Property Value
Remarks
Also known as 'plant'.