WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
LedWizEquivalent.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace DirectOutput.Cab.Toys.LWEquivalent
7 {
13  {
15 
16 
17 
18 
25  public LedWizEquivalentOutputList Outputs
26  {
27  get { return _Outputs; }
28  set { _Outputs = value; }
29  }
30 
31  private int _LedWizNumber=-1;
32 
39  public int LedWizNumber
40  {
41  get { return _LedWizNumber; }
42  set { _LedWizNumber = value; }
43  }
44 
45 
50  public override void Init(Cabinet Cabinet)
51  {
52 
53  Outputs.Init(Cabinet);
54  }
55 
59  public override void Reset()
60  {
61 
62  }
63 
67  public override void Finish()
68  {
69  Outputs.Finish();
70  }
71 
75  public LedWizEquivalent() { }
76 
82  {
83  this.LedWizNumber = LedWiz.Number;
84  this.Name = "LedWizEquivalent {0}".Build(LedWiz.Number);
85  foreach (DirectOutput.Cab.Out.IOutput O in LedWiz.Outputs)
86  {
87  Outputs.Add(new LedWizEquivalentOutput() {OutputName="{0}\\{1}".Build(LedWiz.Name,O.Name),LedWizEquivalentOutputNumber=((DirectOutput.Cab.Out.LW.LedWizOutput)O).LedWizOutputNumber});
88 
89  }
90  }
91 
92  }
93 }
The Cabinet object describes the parts of a pinball cabinet (toys, outputcontrollers, outputs and more).
Definition: Cabinet.cs:17
override void Init(Cabinet Cabinet)
Initializes the LedwizEquivalent toy.
Common interface for all toy implementations. The abstract class ToyBase implements this interface...
Definition: IToy.cs:9
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
The LEDWizEquivalent toy is only used by the framework when ini files are used for the configuration ...
LedWizEquivalent(DirectOutput.Cab.Out.LW.LedWiz LedWiz)
Initializes a new instance of the LedWizEquivalent class.
Output class for LedWiz output controllers.
Definition: LEDWizOutput.cs:12
The LedWiz is a easy to use outputcontroller with 32 outputs which all support 49 pwm levels with a P...
Definition: LedWiz.cs:27
LEDWizEquivalentOutput is the output object for the LedWizEquivalent IToy.
LedWizEquivalent()
Initializes a new instance of the LedWizEquivalent class.
override void Finish()
Finishes the LedWizEquivalent toy.
Base class for IToy implementations
Definition: ToyBase.cs:14
override void Reset()
Resets all output to their default state.
The namespace DirectOutput.Cab.Out.LW contains the classes for LedWiz output controllers.
Definition: LedWiz.cs:8