public bool IsListening(GraphPointer pointer) { if (!pointer.hasData) { return(false); } return(pointer.GetElementData <Data>(this).isListening); }
public static VariableDeclarations Graph(GraphPointer pointer) { Ensure.That(nameof(pointer)).IsNotNull(pointer); if (pointer.hasData) { return(GraphInstance(pointer)); } else { return(GraphDefinition(pointer)); } }
private static bool IsInspected(GraphPointer pointer) { Ensure.That(nameof(pointer)).IsNotNull(pointer); foreach (var graphWindow in GraphWindow.tabsNoAlloc) { if (graphWindow.reference?.InstanceEquals(pointer) ?? false) { return(true); } } return(false); }
// Active state detection happens twice: // // 1. Before the enumeration, because any state // that becomes active during an update shouldn't // be updated until the next update // // 2. Inside the update method, because a state // that was active during enumeration and no longer // is shouldn't be updated. private HashSet <IState> GetActiveStatesNoAlloc(GraphPointer pointer) { var activeStates = HashSetPool <IState> .New(); foreach (var state in states) { var stateData = pointer.GetElementData <State.Data>(state); if (stateData.isActive) { activeStates.Add(state); } } return(activeStates); }
public bool IsListening(GraphPointer pointer) { return(pointer.GetElementData <Data>(this).isListening); }
public bool IsListening(GraphPointer pointer) => pointer.GetElementData <Data>(this).UpdateAction != null;
public bool IsListening(GraphPointer pointer) { return(pointer.GetGraphData <FlowGraphData>().isListening); }
public static VariableDeclarations GraphDefinition(GraphPointer pointer) { return(GraphDefinition((IGraphWithVariables)pointer.graph)); }
public static VariableDeclarations GraphInstance(GraphPointer pointer) { return(pointer.GetGraphData <IGraphDataWithVariables>().variables); }
public bool IsListening(GraphPointer pointer) { return(pointer.GetElementData <State.Data>(source).isActive); }
public RecursionNode(IUnitPort port, GraphPointer pointer) { this.port = port; this.context = pointer.parent; }
public bool IsListening(GraphPointer pointer) => isListening;