Table of Contents

Class DamageBarricadeRequested

Namespace
Uncreated.Warfare.Events.Models.Barricades
Assembly
Uncreated.Warfare.dll

Event listener args which handles SDG.Unturned.BarricadeManager.onDamageBarricadeRequested.

[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_inventory", "modify_world" })]
public sealed class DamageBarricadeRequested : DamageRequested, IDamageBuildableRequestedEvent, ICancellable, IBaseBuildableDestroyedEvent
Inheritance
DamageBarricadeRequested
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

IBuildable

DamageOrigin

The origin of the damage to the barricade.

public required EDamageOrigin DamageOrigin { get; init; }

Property Value

EDamageOrigin

IsCancelled

If this execution has been cancelled.

public override bool IsCancelled { get; }

Property Value

bool

IsOnVehicle

If this barricade is placed on a vehicle.

public bool IsOnVehicle { get; }

Property Value

bool

PrimaryAsset

The item or vehicle that cause the damage to the barricade.

public required IAssetLink<Asset>? PrimaryAsset { get; init; }

Property Value

IAssetLink<Asset>

Region

The region the barricade was placed in.

public required BarricadeRegion Region { get; init; }

Property Value

BarricadeRegion

SecondaryAsset

The item or vehicle that cause the damage to the barricade. This may be an alternate item like the grenade thrown at a landmine, etc.

public required IAssetLink<Asset>? SecondaryAsset { get; init; }

Property Value

IAssetLink<Asset>

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

ushort

Remarks

Also known as 'plant'.