Class StructureDestroyed
- Namespace
- Uncreated.Warfare.Events.Models.Structures
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles a patch on destroyStructure(StructureDrop, byte, byte, Vector3, bool).
[EventModel(EventSynchronizationContext.Pure)]
public class StructureDestroyed : IBuildableDestroyedEvent, IBaseBuildableDestroyedEvent, IActionLoggableEvent
- Inheritance
-
StructureDestroyed
- Implements
- Inherited Members
Fields
BuildableCache
protected IBuildable? BuildableCache
Field Value
Properties
Buildable
Abstracted IBuildable of the structure.
public IBuildable Buildable { get; }
Property Value
DamageOrigin
Origin of the damage that caused the structure to be destroyed.
public required EDamageOrigin DamageOrigin { get; init; }
Property Value
- EDamageOrigin
InstanceId
Instance Id of the structure that was destroyed.
public required uint InstanceId { get; init; }
Property Value
Instigator
Player that destroyed the structure, if any.
public required WarfarePlayer? Instigator { get; init; }
Property Value
InstigatorId
Steam ID of the player that destroyed the structure, or Steamworks.CSteamID.Nil.
public required CSteamID InstigatorId { get; init; }
Property Value
- CSteamID
InstigatorTeam
The team that was responsible for the structure being destroyed.
public required Team InstigatorTeam { get; init; }
Property Value
PrimaryAsset
Primary item used to destroy the structure.
public IAssetLink<ItemAsset>? PrimaryAsset { get; init; }
Property Value
- IAssetLink<ItemAsset>
Region
The region the structure was placed in.
public required StructureRegion Region { get; init; }
Property Value
- StructureRegion
RegionPosition
Coordinate of the structure region in SDG.Unturned.StructureManager.regions.
public required RegionCoord RegionPosition { get; init; }
Property Value
- RegionCoord
SecondaryAsset
Secondary item used to destroy the structure.
public IAssetLink<ItemAsset>? SecondaryAsset { get; init; }
Property Value
- IAssetLink<ItemAsset>
ServersideData
The structure's server-side data.
public required StructureData ServersideData { get; init; }
Property Value
- StructureData
Structure
The structure's object and model data.
public required StructureDrop Structure { get; init; }
Property Value
- StructureDrop
Transform
The Unity model of the structure.
public Transform Transform { get; }
Property Value
- Transform
WasSalvaged
If the structure 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[]