Skip to main content

Module node

Module node 

Source
Expand description

A node in the physical track graph.

ModulesΒ§

commands πŸ”’
connection πŸ”’
manager πŸ”’

StructsΒ§

Connection
NodeConnections
Keeps track of node connections. Stores them in a vector, with alloc_map keeping track of which spaces in the vector are allocated and which are not. Empty spaces are marked with Option::None in the inner vector.
RemoveConnectionFor
Removes a node’s connection with segment and despawns it if no connections remain
TrackNode
A node in the physical track graph.

EnumsΒ§

ConnectionLocation

ConstantsΒ§

MAX_CONNECTIONS πŸ”’
STATIC_CONNECTIONS πŸ”’

FunctionsΒ§

on_node_press_window
Observer that listens for pointer presses on nodes and opens editing windows