Class DamageStructureRequested
- Namespace
- Uncreated.Warfare.Events.Models.Structures
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles SDG.Unturned.StructureManager.onDamageStructureRequested.
[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_inventory", "modify_world" })]
public sealed class DamageStructureRequested : DamageRequested, IDamageBuildableRequestedEvent, ICancellable, IBaseBuildableDestroyedEvent
- Inheritance
-
DamageStructureRequested
- Implements
- Inherited Members
Properties
Buildable
Abstracted IBuildable of the structure.
public override IBuildable Buildable { get; }
Property Value
DamageOrigin
The origin of the damage to the structure.
public required EDamageOrigin DamageOrigin { get; init; }
Property Value
- EDamageOrigin
Direction
The direction the ragdoll is sent.
public required Vector3 Direction { get; init; }
Property Value
- Vector3
IsCancelled
If this execution has been cancelled.
public override bool IsCancelled { get; }
Property Value
PrimaryAsset
The item or vehicle that cause the damage to the structure.
public required IAssetLink<Asset>? PrimaryAsset { get; init; }
Property Value
- IAssetLink<Asset>
Region
The region the structure was placed in.
public required StructureRegion Region { get; init; }
Property Value
- StructureRegion
SecondaryAsset
The item or vehicle that cause the damage to the structure. 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 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 override Transform Transform { get; }
Property Value
- Transform