Esempio n. 1
0
 /// <summary>
 /// Writes node memory to a named memory slot
 /// </summary>
 /// <param name="slotName">Memory slot name</param>
 /// <param name="node">The node to read</param>
 /// <param name="name">Optional name to give the node</param>
 /// <returns></returns>
 public WireBuilder WriteNodeMemoryToSlot(string slotName, IHaveMemoryNode node,
                                          string name = null)
 {
     AddForwardAction(new CopyNamedMemory(slotName, node), name);
     return(this);
 }
Esempio n. 2
0
 public CopyNamedMemory(string slotName, IHaveMemoryNode node)
 {
     _writeTo  = slotName;
     _readFrom = node.Memory.Id;
 }