CircularProjectileCreationSpecification field names are not documented

BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Fri Mar 16, 2018 4:54 am
Contact:

CircularProjectileCreationSpecification field names are not documented

Post 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 872 times
curiosity
Filter Inserter
Filter Inserter
Posts: 484
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: CircularProjectileCreationSpecification field names are not documented

Post by curiosity »

It says type is a tuple, so probably supposed to be an array {RealOrientation, Vector}.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14413
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: CircularProjectileCreationSpecification field names are not documented

Post 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.
If you want to get ahold of me I'm almost always on Discord.
curiosity
Filter Inserter
Filter Inserter
Posts: 484
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: CircularProjectileCreationSpecification field names are not documented

Post by curiosity »

I think, if it specified the names as "[1]" and "[2]", a person familiar with Lua will understand those are indices.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 261
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: CircularProjectileCreationSpecification field names are not documented

Post by Therenas »

I changed this for the next version, although the way tuples are shown will likely change some more in a future release.
Post Reply

Return to “Resolved Requests”