Class DamageRequested
- Namespace
- Uncreated.Warfare.Events.Models.Buildables
- Assembly
- Uncreated.Warfare.dll
Base class for DamageBarricadeRequested and DamageStructureRequested.
public abstract class DamageRequested : CancellableEvent, ICancellable
- Inheritance
-
DamageRequested
- Implements
- Derived
- Inherited Members
Fields
BuildableCache
protected IBuildable? BuildableCache
Field Value
Properties
Buildable
Abstracted IBuildable of the buildable.
public abstract IBuildable Buildable { get; }
Property Value
InstanceId
Instance Id of the buildable.
public required uint InstanceId { get; init; }
Property Value
Instigator
The player that tried to damage the barricade, if any.
public required WarfarePlayer? Instigator { get; init; }
Property Value
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
PendingDamage
Total damage to do to the buildable.
public required ushort PendingDamage { get; set; }
Property Value
Remarks
Can be changed.
RegionIndex
The index of the buildable in it's region.
public required ushort RegionIndex { get; init; }
Property Value
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