Пример #1
0
 public Output(Id <TConnector> id, ConnectorDefinitionData definition, IConversationNodeData parent, IReadOnlyList <IParameter> parameters, IConnectionRules rules)
 {
     Definition = definition;
     Parent     = parent;
     Parameters = parameters;
     Rules      = rules;
     Id         = id;
 }
Пример #2
0
 public void AddConnector(Id <TConnector> id)
 {
     if (!m_connectors.Any(c => c.Id == id))
     {
         ConnectorDefinitionData data = new ConnectorDefinitionData("", Id <TConnectorDefinition> .ConvertFrom(id), new List <NodeData.ParameterData>(), ConnectorPosition.Bottom);
         var connector = new Output(id, data, this, new List <Parameter>(), m_rules);
         connector.Connected    += (a) => Linked.Execute();
         connector.Disconnected += (a) => Linked.Execute();
         m_connectors.Add(connector);
     }
 }