AddRecordData rail_direction documentation issue
AddRecordData rail_direction documentation issue
AddRecordData uses "RailDirection?" as the attribute definition, this should probably be defines.rail_direction as e.g. https://lua-api.factorio.com/latest/cla ... _direction
Re: AddRecordData rail_direction documentation issue
Ok, for 2.0.39 i changed the type to be `defines.rail_direction`. Given that i saw 127270 where you also specify `station` + `rail_direction`, i also added this bit of explanation:
This is to highlight that rail_direction is only relevant if rail is given and is meaningless when station is given.$field(rail_direction, defines.rail_direction, $optional) When `rail` is given, this can be provided to further narrow down direction from which that rail should be approached.
Re: AddRecordData rail_direction documentation issue
Thanks for adding that explanation. I will update my code accordingly.