Struct ItemInfo
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
itemItemDataindexintcoordRegionCoord
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
Index
Index of the item in it's region's item list.
public int Index { get; }
Property Value
Item
public ItemData Item { get; }
Property Value
- ItemData
Methods
GetRegion()
[Pure]
public ItemRegion GetRegion()
Returns
- ItemRegion