Class StructurePlaced
- Namespace
- Uncreated.Warfare.Events.Models.Structures
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles SDG.Unturned.StructureManager.onStructureSpawned.
[EventModel(EventSynchronizationContext.Pure)]
public class StructurePlaced : IBuildablePlacedEvent, IActionLoggableEvent
- Inheritance
-
StructurePlaced
- Implements
- Inherited Members
Fields
BuildableCache
protected IBuildable? BuildableCache
Field Value
Properties
Buildable
Abstracted IBuildable of the barricade.
public IBuildable Buildable { get; }
Property Value
GroupId
The Steam ID of the group that placed the structure.
public CSteamID GroupId { get; }
Property Value
- CSteamID
Owner
The owner of the structure, if they're online.
public required WarfarePlayer? Owner { get; init; }
Property Value
OwnerId
The Steam ID of the player that placed the structure.
public CSteamID OwnerId { get; }
Property Value
- CSteamID
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
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
Methods
GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)
public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)
Parameters
serviceProviderIServiceProvidermultipleEntriesActionLogEntry[]