Declared in FuelBus

Declaration

bool Connect(
    UniverseObject from,
    FuelPort fromPort,
    UniverseObject to,
    FuelPort toPort
);

Description

Connects two fuel components on specified ports. Creates an edge in the network and adds both components to the cache if not already present. For cross-spacecraft connections, the edge is added to both buses.

Parameters

NameDescription
fromThe source component.
fromPortThe port on the source component.
toThe destination component.
toPortThe port on the destination component.