Table of Contents

Struct StructureInfo

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

Stores return information about a structure including it's region information.

public readonly struct StructureInfo
Inherited Members

Remarks

Only valid for one frame, shouldn't be stored for longer than that.

Constructors

StructureInfo(StructureDrop?, int, RegionCoord)

public StructureInfo(StructureDrop? drop, int index, RegionCoord coord)

Parameters

drop StructureDrop
index int
coord RegionCoord

Properties

Coord

Coordinates of the region the structure is in, if it's not on a vehicle.

public RegionCoord Coord { get; }

Property Value

RegionCoord

Data

public StructureData Data { get; }

Property Value

StructureData

Drop

public StructureDrop Drop { get; }

Property Value

StructureDrop

HasValue

public bool HasValue { get; }

Property Value

bool

Index

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

public int Index { get; }

Property Value

int

Methods

GetRegion()

[Pure]
public StructureRegion GetRegion()

Returns

StructureRegion