Struct ObjectInfo
Stores return information about a object including it's region information.
public readonly struct ObjectInfo
- Inherited Members
Remarks
Only valid for one frame, shouldn't be stored for longer than that.
Constructors
ObjectInfo(LevelObject?, int, RegionCoord)
public ObjectInfo(LevelObject? @object, int index, RegionCoord coord)
Parameters
objectLevelObjectindexintcoordRegionCoord
Properties
Coord
Coordinates of the region the object 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 object in it's region's object list.
public int Index { get; }
Property Value
Object
public LevelObject Object { get; }
Property Value
- LevelObject
Methods
GetRegion()
[Pure]
public List<LevelObject> GetRegion()
Returns
- List<LevelObject>