Example #1
0
 public EndModule(XElement element)
 {
     OutputType = InvalidModuleSaveElementException.ParseInt(element.Element("out")) == 1 ? BoardOutput.Right : BoardOutput.Left;
     Inputs     = new FlexConnections(element.Element("inputs"));
     Outputs    = new ConnectionsArray(element.Element("outputs"));
     output     = new float[1];
 }
Example #2
0
 public EndModule(bool right)
 {
     OutputType = right ? BoardOutput.Right : BoardOutput.Left;
     Inputs     = new FlexConnections();
     Outputs    = new ConnectionsArray(1);
     output     = new float[1];
 }
Example #3
0
 public EndModule(EndModule endModule)
 {
     OutputType = endModule.OutputType;
     Inputs     = new FlexConnections(endModule.Inputs.Count);
     Outputs    = new ConnectionsArray(1);
     output     = new float[1];
 }
Example #4
0
 public BoardModifierModule(BoardOutput output)
 {
     Inputs     = new ConnectionsArray(1);
     Outputs    = new ConnectionsArray(1);
     OutputType = output;
 }