RouteNodeUI

Overview

Clickable marker for a graph node in the builder. Validates availability on enable and raises a selection event when clicked. fileciteturn22file4

Enable Logic

  • Invalid when:
    • Node’s Region.Presence == true
    • Destination is the current region
    • NodeMap.CreateRoute(currentRegion.Node, node) == null
  • Otherwise valid → enables button and marker. fileciteturn22file4

API

Init(Node) to assign; OnNodeSelected() raises NodeSelected with the node GameObject. fileciteturn22file4