Deindexes a unit. Returns whether the unit was originally indexed.
Returns the int index of this unit. Can be configured by the user to supply a custom unit indexer which won't break other stdlib components.
Returns the currently indexing unit. That's the last indexed unit or the one about to be deindexed.
Adds a function to be called before a unit is deindexed. Use the getIndexingUnit() function to refer to the deindexing unit.
Adds a function to be called after a unit is indexed. Use the getIndexingUnit() function to refer to the indexed unit.
Returns the UnitIndex associated with this unit, creating a new one if necessary.