Table of Contents

Struct BarricadeInfo

Namespace
Uncreated.Warfare.Util
Assembly
Uncreated.Warfare.dll

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

drop BarricadeDrop
index int
coord RegionCoord

BarricadeInfo(BarricadeDrop?, int, ushort)

public BarricadeInfo(BarricadeDrop? drop, int index, ushort plant)

Parameters

drop BarricadeDrop
index int
plant ushort

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

bool

Index

Index of the barricade in it's region's drop list.

public int Index { get; }

Property Value

int

IsOnVehicle

public bool IsOnVehicle { get; }

Property Value

bool

Plant

The index of the vehicle region in SDG.Unturned.BarricadeManager.vehicleRegions.

public ushort Plant { get; }

Property Value

ushort

Methods

GetRegion()

[Pure]
public BarricadeRegion GetRegion()

Returns

BarricadeRegion