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]; }
public EndModule(bool right) { OutputType = right ? BoardOutput.Right : BoardOutput.Left; Inputs = new FlexConnections(); Outputs = new ConnectionsArray(1); output = new float[1]; }
public EndModule(EndModule endModule) { OutputType = endModule.OutputType; Inputs = new FlexConnections(endModule.Inputs.Count); Outputs = new ConnectionsArray(1); output = new float[1]; }
public BoardModifierModule(BoardOutput output) { Inputs = new ConnectionsArray(1); Outputs = new ConnectionsArray(1); OutputType = output; }