Exemplo n.º 1
0
 public GetAttributes(Entity.Type.ObjectType typetosplit) : base()
 {
     AddInput("this", new Entity.Variable(typetosplit), true);
     this._stored = typetosplit;
     attrs        = _stored.GetAttributes().Keys.ToList();
     foreach (KeyValuePair <string, IDefinition> attr in typetosplit.GetAttributes())
     {
         AddOutput(attr.Key, new Entity.Variable((Entity.DataType)attr.Value), true);
     }
 }
Exemplo n.º 2
0
 public SetAttribute(Entity.Type.ObjectType type) : base()
 {
     stored = type;
     AddInput("this", new Entity.Variable(type), true);
     foreach (KeyValuePair <string, Global.IDefinition> curr in type.GetAttributes())
     {
         Entity.Variable definition = new Entity.Variable((Entity.DataType)curr.Value);
         AddInput(curr.Key, definition);        //each time the node is executed, input are refreshed
         AddOutput(curr.Key, definition, true); //if the definition of output is the same as the input they will be refreshed too
         attributes.Add(curr.Key);
     }
 }