Home › Engine Lua tables › Variant container (read only)
Engine executable. Settings and tools of the game program (CivilizationVI.exe), usable without a mod. Mostly undocumented debug and configuration functionality; descriptions come from analysis of the executable and have not all been tried in the running game.
Variant container (read only)
Object type with 5 methods. smaller variant of the generic container, used on pParameters in game scripts. Registering function 0xdb7e90.
Methods are called on a value of this type with a colon (obj:Method(...)).
| Method |
Returns |
In game scripts |
Example |
Status |
Variant container (read only):Add(arg1, …) -> 1 value |
1 value |
6 calls, 3 files |
pGoal = pParameters:Add( goal.Id ) |
inferred |
Variant container (read only):Get(arg1, …) -> 1 value |
1 value |
7 calls, 3 files |
local pValues:table = pParameters:Get( key ) |
inferred |
Variant container (read only):GetValue([arg1], …) -> 1 value |
1 value |
not called |
— |
inferred |
Variant container (read only):Remove(arg1, …) |
— |
4 calls, 3 files |
pParameters:Remove( key ) |
inferred |
Variant container (read only):SetValue(…) |
— |
not called |
— |
inferred |