コード例 #1
0
 public void SetPortData(IPortData portData)
 {
     fieldName        = portData.ItemName;
     direction        = portData.Direction;
     connectionType   = portData.ConnectionType;
     showBackingValue = portData.ShowBackingValue;
     portValue.SetValueTypeFilter(portData.ValueTypes);
 }
コード例 #2
0
ファイル: PortData.cs プロジェクト: tuita520/UniGame.GameFlow
 public PortData(IPortData portData)
 {
     fieldName        = portData.ItemName;
     direction        = portData.Direction;
     connectionType   = portData.ConnectionType;
     showBackingValue = portData.ShowBackingValue;
     valueTypes       = portData.ValueTypes.ToList();
 }
コード例 #3
0
 public NodePortDefinition(string key, string title, InputOutputType inputOutputType, IPortData defaultValue, bool isMandatory)
 {
     Key             = key;
     Title           = title;
     InputOutputType = inputOutputType;
     DataMode        = DataMode.WithData;
     PortDataType    = defaultValue.GetType();
     DefaultValue    = defaultValue;
     Mandatory       = isMandatory;
 }
コード例 #4
0
ファイル: NodePort.cs プロジェクト: tuita520/UniGame.GameFlow
 public NodePort(int id, INode node, IPortData portData) :
     this(id,
          node,
          portData.ItemName,
          portData.Direction,
          portData.ConnectionType,
          portData.ShowBackingValue,
          portData.ValueTypes)
 {
 }
コード例 #5
0
 public NodePort(int id, int nodeId, NodeGraph graph, IPortData portData) :
     this(id,
          nodeId,
          graph,
          portData.ItemName,
          portData.Direction,
          portData.ConnectionType,
          portData.ShowBackingValue,
          portData.ValueTypes,
          portData.DistinctValues)
 {
 }
コード例 #6
0
        public static INodePort UpdatePort(this INode node, IPortData portData)
        {
            var portValue = UpdatePortValue(node, portData);

            if (portValue == null)
            {
                return(null);
            }
            var port = node.GetPort(portValue.ItemName);

            return(port);
        }
コード例 #7
0
        public static IPortValue UpdatePortValue(this INode node, IPortData portData)
        {
            if (portData == null)
            {
                return(null);
            }

            var port = node.UpdatePortValue(
                portData.ItemName,
                portData.Direction,
                portData.ConnectionType,
                ShowBackingValue.Always,
                portData.ValueTypes);


            return(port);
        }