WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
LedWizEquivalentOutput.cs
Go to the documentation of this file.
1 using System.Xml.Serialization;
2 using DirectOutput.Cab.Out;
3 
4 namespace DirectOutput.Cab.Toys.LWEquivalent
5 {
9  public class LedWizEquivalentOutput
10  {
17 
18  public string OutputName { get; set; }
19 
26  public int LedWizEquivalentOutputNumber { get; set; }
27 
28 
29  private IOutput _Output;
30 
35  public void Init(Cabinet Cabinet)
36  {
37  if (Cabinet.Outputs.Contains(OutputName))
38  {
39  _Output = Cabinet.Outputs[OutputName];
40  }
41  else
42  {
43  _Output = null;
44  }
45  }
46 
50  public void Reset()
51  {
52 
53  }
54 
58  public void Finish()
59  {
60 
61  _Output = null;
62  }
63  }
64 }
The Cabinet object describes the parts of a pinball cabinet (toys, outputcontrollers, outputs and more).
Definition: Cabinet.cs:17
void Init(Cabinet Cabinet)
Initalizes the LedWizEquivalentOutput.
bool Contains(IOutput Output)
Checks if the specified IOutput exists in the list.
CabinetOutputList Outputs
List of IOutput objects representing all outputs of all all output controllers in the cabinet...
Definition: Cabinet.cs:164
void Reset()
Resets the output to its default value.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Definition: Cab.cs:16
DirectOutput.Cab.Out is the namespace for all output controller related classes like different output...
Common interface for outputs of any output controller. The Output class implements this interface and...
Definition: IOutput.cs:10
void Finish()
Finishes this instance and resets the output to its default value.
LEDWizEquivalentOutput is the output object for the LedWizEquivalent IToy.