Table of Contents

Struct ObjectInfo

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

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

object LevelObject
index int
coord RegionCoord

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

bool

Index

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

public int Index { get; }

Property Value

int

Object

public LevelObject Object { get; }

Property Value

LevelObject

Methods

GetRegion()

[Pure]
public List<LevelObject> GetRegion()

Returns

List<LevelObject>