Table of Contents

Struct ItemInfo

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

Stores return information about an item including it's region information.

public readonly struct ItemInfo
Inherited Members

Remarks

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

Constructors

ItemInfo(ItemData?, int, RegionCoord)

public ItemInfo(ItemData? item, int index, RegionCoord coord)

Parameters

item ItemData
index int
coord RegionCoord

Properties

Coord

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

public RegionCoord Coord { get; }

Property Value

RegionCoord

HasValue

public bool HasValue { get; }

Property Value

bool

Index

Index of the item in it's region's item list.

public int Index { get; }

Property Value

int

Item

public ItemData Item { get; }

Property Value

ItemData

Methods

GetRegion()

[Pure]
public ItemRegion GetRegion()

Returns

ItemRegion