So far, I understand the position to mean "relative to the center of the entity, where would you place the center of a pipe to connect to this fluid-box". However, I'm not sure how the game determines how 2 non-pipe entities are connected.
For instance, the chemical-plant is a 3x3 element (1.5 from center to edge). Its [abridged] fluid boxes are:
Code: Select all
fluid_boxes =
{
{
production_type = "input",
pipe_connections = {{ type="input", position = {-1, -2} }}
},
{
production_type = "input",
pipe_connections = {{ type="input", position = {1, -2} }}
},
{
production_type = "output",
pipe_connections = {{ position = {-1, 2} }}
},
{
production_type = "output",
pipe_connections = {{ position = {1, 2} }}
}
}
So how do we tell if 2 pipe_connections will be connected?
* I know the center would be on a .5, but it makes the example easier if not everything has .5.
