Inspect.Unit.Lookup

From Riftui Wiki

Jump to: navigation, search

Converts unit IDs to unit specifiers and vice-versa.

Contents

Signature

unit = Inspect.Unit.Lookup(unit)   -- unit <- unit
units = Inspect.Unit.Lookup(units)   -- table <- table

Parameters

unit: A single unit ID or unit specifier.
units: A lookup table containing unit IDs and unit specifiers.

Return Value

unit: A unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil.
units: A lookup table of unit IDs and unit specifiers. The key is the input, the value is the result. Invalid inputs will not result in output entries.

Returned Members

none

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox