make_copy() | → LuaRailEnd | Creates a copy of this LuaRailEnd object. |
Creates a copy of this LuaRailEnd object. | ||
flip_direction() | Moves to opposite end on the rail this object points to | |
Moves to opposite end on the rail this object points to | ||
move_forward(connection_direction) | → boolean | Moves forward by 1 rail to the specified connection direction |
Moves forward by 1 rail to the specified connection direction | ||
move_natural() | → boolean | Moves forward by 1 rail in the natural direction. [...] |
Moves forward by 1 rail in the natural direction. [...] | ||
move_to_segment_end() | Moves forward until a rail segment boundary is reached. [...] | |
Moves forward until a rail segment boundary is reached. [...] | ||
get_rail_extensions(planner_item) | → array[RailExtensionData] | Returns all possible rail extensions from this position as defined by the planner item. |
Returns all possible rail extensions from this position as defined by the planner item. | ||
rail | :: R LuaEntity | Rail to which this RailEnd is binding to. |
Rail to which this RailEnd is binding to. | ||
direction | :: R defines.rail_direction | Which end of the rail this RailEnd is binding to. |
Which end of the rail this RailEnd is binding to. | ||
location | :: R RailLocation | Location of the rail end |
Location of the rail end | ||
out_signal_location | :: R RailLocation | Location of an outgoing signal, which goes to the right relative to the rail end movement. |
Location of an outgoing signal, which goes to the right relative to the rail end movement. | ||
alternative_out_signal_location | :: R RailLocation? | Location of the alternative outgoing signal, which goes to the right relative to the rail end movement. [...] |
Location of the alternative outgoing signal, which goes to the right relative to the rail end movement. [...] | ||
in_signal_location | :: R RailLocation | Location of an incoming signal, which goes to the left relative to the rail end movement. |
Location of an incoming signal, which goes to the left relative to the rail end movement. | ||
alternative_in_signal_location | :: R RailLocation? | Location of the alternative incoming signal, which goes to the right relative to the rail end movement. [...] |
Location of the alternative incoming signal, which goes to the right relative to the rail end movement. [...] | ||
valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] |
connection_direction | :: defines.rail_connection_direction |
→ boolean | If the move was successful. False if there is no rail connected in given connection_direction |
→ boolean | If the move was successful. False only when there are no rails connected on this end |
planner_item | :: ItemID | Rail planner that defines possible rail extensions |
Rail planner that defines possible rail extensions |