Class BarricadeDestroyed
- Namespace
- Uncreated.Warfare.Events.Models.Barricades
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles a patch on destroyBarricade(BarricadeDrop, byte, byte, ushort).
[EventModel(EventSynchronizationContext.Pure)]
public class BarricadeDestroyed : IBuildableDestroyedEvent, IBaseBuildableDestroyedEvent, IActionLoggableEvent
- Inheritance
-
BarricadeDestroyed
- Implements
- Inherited Members
Fields
BuildableCache
protected IBuildable? BuildableCache
Field Value
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 IBuildable Buildable { get; }
Property Value
DamageOrigin
Origin of the damage that caused the barricade to be destroyed.
public required EDamageOrigin DamageOrigin { get; init; }
Property Value
- EDamageOrigin
InstanceId
Instance Id of the barricade that was destroyed.
public required uint InstanceId { get; init; }
Property Value
Instigator
Player that destroyed the barricade, if any.
public required WarfarePlayer? Instigator { get; init; }
Property Value
InstigatorId
Steam ID of the player that destroyed the barricade, or Steamworks.CSteamID.Nil.
public required CSteamID InstigatorId { get; init; }
Property Value
- CSteamID
InstigatorTeam
The team that was responsible for the barricade being destroyed.
public required Team InstigatorTeam { get; init; }
Property Value
IsOnVehicle
If this barricade was placed on a vehicle.
public bool IsOnVehicle { get; }
Property Value
PrimaryAsset
Primary item used to destroy the barricade.
public IAssetLink<ItemAsset>? PrimaryAsset { get; init; }
Property Value
- IAssetLink<ItemAsset>
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
RegionPosition
Coordinate of the barricade region in SDG.Unturned.BarricadeManager.regions.
public required RegionCoord RegionPosition { get; init; }
Property Value
- RegionCoord
SecondaryAsset
Secondary item used to destroy the barricade.
public IAssetLink<ItemAsset>? SecondaryAsset { get; init; }
Property Value
- IAssetLink<ItemAsset>
ServersideData
The barricade's server-side data.
public required BarricadeData ServersideData { get; init; }
Property Value
- BarricadeData
Transform
The Unity model of the barricade.
public 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'.
WasSalvaged
If the barricade was salvaged.
public required bool WasSalvaged { get; init; }
Property Value
Methods
GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)
public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)
Parameters
serviceProviderIServiceProvidermultipleEntriesActionLogEntry[]