CityBuildQueue:GetAt

this function is a member of CityBuildQueue this method expects an implicit “self” argument. invoke it with :


Usage

UIScriptReturnsFunctionArguments
QueueEntry [table]CityBuildQueue:GetAtQueuePosition [number]

Notes

Unlike standard Lua arrays QueuePosition [number] starts at 0. It returns a table representing whatever order is in the Build Queue at that position, or null if there is nothing queued at that position.

The table it returns is as follows:

KeyValueSub-ValueNotes
DirectiveintegerCorresponds to an entry in the CityProductionDirectives global table
Modifiersinteger
DistrictTypeintegerEmpty if not applicable.
ProjectTypeintegerEmpty if not applicable.
UnitTypeintegerEmpty if not applicable.
MilitaryFormationTypeintegerEmpty if not applicable. Corresponds to an entry in the MilitaryFormationTypes global table. Allows you to tell if the city is building a single unit, a Corps, etc.
BuildingTypeintegerEmpty if not applicable.
Locationtable
xinteger

| | y | integer | |