public sealed class EventChainProjectionTurns an event chain into the graph the canvas draws.
Remarks
A projection rather than the document, for the reason EventChain records: the canvas refuses a cycle and gives an input one wire, and an event chain has both. So the spanning walk's edges become wires and everything else becomes a badge on the box it left — visible, labelled, and not silently missing.
Each box carries its DynamicEventTemplate in Tag, which is how a click on a box becomes a selection in the catalog.
Fields and properties (5)
public float ColumnWidthHow far apart the columns are.
public float RowHeightHow far apart the rows are.
public NodeGraph GraphWhat the canvas shows.
public EventChain? ChainThe chain the last Project drew.
public int DeferredHow many edges were drawn as badges rather than as wires.
Methods (4)
public NodeGraph Project(EventChain chain)Rebuilds the picture.
public GraphNode? BoxOf(DefId id)The box showing an event, if it is in the picture.
public static DynamicEventTemplate? EventOf(GraphNode box)The event a box is showing.
public int Live(DynamicEventDirector? director)Tints the picture by what is actually running.
Used by (1)
- EventChainProjectionTestsVixen.Editor.Gameplay.Quests.Tests