Struct BarricadeInfo
Stores return information about a barricade including it's region information.
public readonly struct BarricadeInfo
- Inherited Members
Remarks
Only valid for one frame, shouldn't be stored for longer than that.
Constructors
BarricadeInfo(BarricadeDrop?, int, RegionCoord)
public BarricadeInfo(BarricadeDrop? drop, int index, RegionCoord coord)
Parameters
dropBarricadeDropindexintcoordRegionCoord
BarricadeInfo(BarricadeDrop?, int, ushort)
public BarricadeInfo(BarricadeDrop? drop, int index, ushort plant)
Parameters
Properties
Coord
Coordinates of the region the barricade is in, if it's not on a vehicle.
public RegionCoord Coord { get; }
Property Value
- RegionCoord
Data
public BarricadeData Data { get; }
Property Value
- BarricadeData
Drop
public BarricadeDrop Drop { get; }
Property Value
- BarricadeDrop
HasValue
public bool HasValue { get; }
Property Value
Index
Index of the barricade in it's region's drop list.
public int Index { get; }
Property Value
IsOnVehicle
public bool IsOnVehicle { get; }
Property Value
Plant
The index of the vehicle region in SDG.Unturned.BarricadeManager.vehicleRegions.
public ushort Plant { get; }
Property Value
Methods
GetRegion()
[Pure]
public BarricadeRegion GetRegion()
Returns
- BarricadeRegion