Page 1 of 1

CircularProjectileCreationSpecification field names are not documented

Posted: Sun Oct 15, 2023 9:02 am
by BurninSun
CircularProjectileCreationSpecification
located at: https://lua-api.factorio.com/latest/con ... cification
does not have its field names documented and shows as this:
Screen Shot 2023-10-15 at 02.01.00.png
Screen Shot 2023-10-15 at 02.01.00.png (8.57 KiB) Viewed 568 times

Re: CircularProjectileCreationSpecification field names are not documented

Posted: Sun Oct 15, 2023 9:05 am
by curiosity
It says type is a tuple, so probably supposed to be an array {RealOrientation, Vector}.

Re: CircularProjectileCreationSpecification field names are not documented

Posted: Sun Oct 15, 2023 2:45 pm
by Rseding91
Tuple's on the C++ side are not named but just referenced by index or type in the tuple. So this would be correct in that they have no names and are just extracted [1] and [2] from the lua input.

Re: CircularProjectileCreationSpecification field names are not documented

Posted: Mon Oct 16, 2023 9:48 am
by curiosity
I think, if it specified the names as "[1]" and "[2]", a person familiar with Lua will understand those are indices.

Re: CircularProjectileCreationSpecification field names are not documented

Posted: Thu Jan 11, 2024 1:38 pm
by Therenas
I changed this for the next version, although the way tuples are shown will likely change some more in a future release.