Table of Contents

Class DamageRequested

Namespace
Uncreated.Warfare.Events.Models.Buildables
Assembly
Uncreated.Warfare.dll
public abstract class DamageRequested : CancellableEvent, ICancellable
Inheritance
DamageRequested
Implements
Derived
Inherited Members

Fields

BuildableCache

protected IBuildable? BuildableCache

Field Value

IBuildable

Properties

Buildable

Abstracted IBuildable of the buildable.

public abstract IBuildable Buildable { get; }

Property Value

IBuildable

InstanceId

Instance Id of the buildable.

public required uint InstanceId { get; init; }

Property Value

uint

Instigator

The player that tried to damage the barricade, if any.

public required WarfarePlayer? Instigator { get; init; }

Property Value

WarfarePlayer

InstigatorId

The steam ID player that tried to damage the barricade, if any.

public required CSteamID InstigatorId { get; init; }

Property Value

CSteamID

InstigatorTeam

The team that was responsible for the buildable being destroyed.

public required Team InstigatorTeam { get; init; }

Property Value

Team

PendingDamage

Total damage to do to the buildable.

public required ushort PendingDamage { get; set; }

Property Value

ushort

Remarks

Can be changed.

RegionIndex

The index of the buildable in it's region.

public required ushort RegionIndex { get; init; }

Property Value

ushort

RegionPosition

Coordinate of the barricade region in SDG.Unturned.BarricadeManager.regions.

public required RegionCoord RegionPosition { get; init; }

Property Value

RegionCoord

Transform

The Unity model of the buildable.

public abstract Transform Transform { get; }

Property Value

Transform