public CExecutionPinViewModel(CExecutionPin executionPin, CScriptNodeViewmodel nodeViewModel, int pinIndex, bool isIn) : base(nodeViewModel, pinIndex) { m_pin = executionPin; Name = executionPin.Name; Tooltip = "Execution Path"; m_pinColor = PinColorHelpers.GetExecutionPinColor(); IsIn = isIn; }
public CInputPinViewModel(CInputPin inputPin, CScriptNodeViewmodel nodeViewModel, int pinIndex) : base(nodeViewModel, pinIndex) { m_pin = inputPin; Name = inputPin.Name; Tooltip = EditorKlaxScriptUtility.GetTypeName(inputPin.Type); m_pinColor = PinColorHelpers.GetColorForType(inputPin.Type); m_nodeViewmodel = nodeViewModel; m_literal = inputPin.Literal; m_valueType = inputPin.Type; m_bIsLiteralOnly = inputPin.bIsLiteralOnly; }