Class ClaimBedRequested
- Namespace
- Uncreated.Warfare.Events.Models.Barricades
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles a patch on SDG.Unturned.InteractableBed.ReceiveClaimRequest(in SDG.Unturned.ServerInvocationContext).
[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_world" })]
public class ClaimBedRequested : CancellablePlayerEvent, IPlayerEvent, ICancellable
- Inheritance
-
ClaimBedRequested
- Implements
- Inherited Members
Properties
Barricade
The barricade's object and model data.
public required BarricadeDrop Barricade { get; init; }
Property Value
- BarricadeDrop
Bed
The barricade's bed component.
public required InteractableBed Bed { get; init; }
Property Value
- InteractableBed
Buildable
Abstracted IBuildable of the barricade.
public IBuildable Buildable { get; }
Property Value
IsOnVehicle
If the barricade is planted on a vehicle.
public bool IsOnVehicle { get; }
Property Value
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'.