コード例 #1
0
ファイル: FlowGraphNode.cs プロジェクト: iniside/CryCIL
        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);
        }
コード例 #2
0
ファイル: FlowGraphNode.cs プロジェクト: iniside/CryCIL
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, Vector3 value)
 {
     node.ActivateOutput(portIndex, value, Native.FlowNodeInterop.ActivateOutputVec3);
 }
コード例 #3
0
ファイル: FlowGraphNode.cs プロジェクト: iniside/CryCIL
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, bool value)
 {
     node.ActivateOutput(portIndex, value, Native.FlowNodeInterop.ActivateOutputBool);
 }
コード例 #4
0
ファイル: FlowGraphNode.cs プロジェクト: iniside/CryCIL
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, string value)
 {
     node.ActivateOutput(portIndex, value, Native.FlowNodeInterop.ActivateOutputString);
 }
コード例 #5
0
ファイル: FlowGraphNode.cs プロジェクト: iniside/CryCIL
 internal static void ActivateOutput(FlowGraphNode node, int portIndex, EntityId value)
 {
     node.ActivateOutput(portIndex, value.Value, Native.FlowNodeInterop.ActivateOutputEntityId);
 }
コード例 #6
0
ファイル: FlowNodePort.cs プロジェクト: iniside/CryCIL
 internal void Initialize(FlowGraphNode nodeHandle, int id)
 {
     this.NodeHandle = nodeHandle;
     this.Identifier = id;
 }
コード例 #7
0
ファイル: FlowNodePort.cs プロジェクト: RoqueDeicide/CryCIL
 internal void Initialize(FlowGraphNode nodeHandle, int id)
 {
     this.NodeHandle = nodeHandle;
     this.Identifier = id;
 }