Exemple #1
0
        internal static void ActivateOutput(FlowGraphNode node, int portIndex)
        {
            FlowNodePort port = node.Outputs[portIndex];
            FlowNodePortActivationEventArgs eventArgs = new FlowNodePortActivationEventArgs
            {
                Name        = port.Name,
                DisplayName = port.DisplayName,
                Description = port.Description,
                Type        = port.Type,
                IsOutput    = true,
                Value       = null
            };

            node.OnActivated(eventArgs);
            Native.FlowNodeInterop.ActivateOutput(node.Handle, portIndex);
            node.OnPostActivated(eventArgs);
        }
Exemple #2
0
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, Vector3 value)
 {
     node.ActivateOutput(portIndex, value, Native.FlowNodeInterop.ActivateOutputVec3);
 }
Exemple #3
0
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, bool value)
 {
     node.ActivateOutput(portIndex, value, Native.FlowNodeInterop.ActivateOutputBool);
 }
Exemple #4
0
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, string value)
 {
     node.ActivateOutput(portIndex, value, Native.FlowNodeInterop.ActivateOutputString);
 }
Exemple #5
0
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, EntityId value)
 {
     node.ActivateOutput(portIndex, value.Value, Native.FlowNodeInterop.ActivateOutputEntityId);
 }
Exemple #6
0
 internal void Initialize(FlowGraphNode nodeHandle, int id)
 {
     this.NodeHandle = nodeHandle;
     this.Identifier = id;
 }
Exemple #7
0
 internal void Initialize(FlowGraphNode nodeHandle, int id)
 {
     this.NodeHandle = nodeHandle;
     this.Identifier = id;
 }