Class BarricadePlaced
- Namespace
- Uncreated.Warfare.Events.Models.Barricades
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles SDG.Unturned.BarricadeManager.onBarricadeSpawned.
[EventModel(EventSynchronizationContext.Pure)]
public class BarricadePlaced : IBuildablePlacedEvent, IActionLoggableEvent
- Inheritance
-
BarricadePlaced
- Implements
- Inherited Members
Properties
Barricade
The barricade's object and model data.
public required BarricadeDrop Barricade { get; init; }
Property Value
- BarricadeDrop
Buildable
Abstracted IBuildable of the barricade.
public required IBuildable Buildable { get; init; }
Property Value
GroupId
The Steam ID of the group that placed the barricade.
public CSteamID GroupId { get; }
Property Value
- CSteamID
IsOnVehicle
If this barricade is being placed on a vehicle.
public bool IsOnVehicle { get; }
Property Value
Owner
The owner of the barricade, if they're online.
public required WarfarePlayer? Owner { get; init; }
Property Value
OwnerId
The Steam ID of the player that placed the barricade.
public CSteamID OwnerId { get; }
Property Value
- CSteamID
Region
The region the barricade was placed in. This could be of type SDG.Unturned.VehicleBarricadeRegion.
public required BarricadeRegion Region { get; init; }
Property Value
- BarricadeRegion
RegionPosition
Coordinate of the barricade region in SDG.Unturned.BarricadeManager.regions.
public required RegionCoord RegionPosition { get; init; }
Property Value
- RegionCoord
ServersideData
The barricade's server-side data.
public required BarricadeData ServersideData { get; init; }
Property Value
- BarricadeData
Transform
The Unity model of the barricade.
public Transform Transform { get; }
Property Value
- Transform
VehicleRegionIndex
The index of the vehicle region in SDG.Unturned.BarricadeManager.vehicleRegions. MaxValue if the barricade is not planted.
public required ushort VehicleRegionIndex { get; init; }
Property Value
Remarks
Also known as 'plant'.
Methods
GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)
public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)
Parameters
serviceProviderIServiceProvidermultipleEntriesActionLogEntry[]