Class ChangeSignTextRequested
- Namespace
- Uncreated.Warfare.Events.Models.Barricades
- Assembly
- Uncreated.Warfare.dll
Event listener args which handles a patch on updateText(string).
[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_world" })]
public class ChangeSignTextRequested : CancellablePlayerEvent, IPlayerEvent, ICancellable
- Inheritance
-
ChangeSignTextRequested
- 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 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
Sign
The barricade's sign component.
public required InteractableSign Sign { get; init; }
Property Value
- InteractableSign
Text
New text on the sign.
public required string Text { get; set; }
Property Value
Remarks
This can be changed.
Exceptions
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'.