DirectOutputR1
DirectOutput framework R1 for virtual pinball cabinets.
|
Go to: Overview |
The Cabinet object describes the parts of a pinball cabinet (toys, outputcontrollers, outputs and more). More...
Public Member Functions | |
void | AutoConfig () |
This method finds all classes implementing the IAutoConfigOutputController interface and uses the member of this interface to detect and configure IOutputController objects automatically. More... | |
string | GetConfigXml () |
Returns a serialized XML representation of the cabinet configuration. More... | |
void | SaveConfigXmlFile (string FileName) |
Serializes the cabinet configuration to a XML file. More... | |
void | Init (Pinball Pinball) |
Initializes the cabinet. More... | |
void | Update () |
Calls the update method for toys and output controllers in the cabinet More... | |
void | Finish () |
Finishes the cabinet More... | |
Cabinet () | |
Initializes a new instance of the Cabinet class. More... | |
Static Public Member Functions | |
static Cabinet | GetCabinetFromConfigXmlFile (string FileName) |
Instanciates a Cabinet object from a cabinet configuration in a XML file. More... | |
static bool | TestCabinetConfigXmlFile (string FileName) |
Tests a cabinet config in a XML file. More... | |
static Cabinet | GetCabinetFromConfigXmlFile (FileInfo CabinetConfigFile) |
Instanciates a Cabinet object from a cabinet configuration in a XML file. More... | |
static Cabinet | GetCabinetFromConfigXml (string ConfigXml) |
Instanciates a Cabinet object from a cabinet configuration in a XML string. More... | |
Properties | |
Pinball | Pinball [get, set] |
Gets the Pinball object to which the Cabinet pobject belongs. More... | |
string | Name [get, set] |
Name of the Cabinet. More... | |
string | CabinetConfigurationFilename [get, set] |
Gets or sets the filename from which the cabiet configuration was loaded. More... | |
DirectOutput.Cab.Toys.ToyList | Toys [get, set] |
List of IToy objects describing the toys in the cabinet. More... | |
DirectOutput.Cab.Color.ColorList | Colors [get, set] |
List of Color objects used to set colors for toys. More... | |
bool | AutoConfigEnabled [get, set] |
Gets or sets a value indicating whether auto config is enabled. If auto config is enabled, the framework tries to detect and configure IOutputController objects and related IToy objects automatically. More... | |
CabinetOutputList | Outputs [get] |
List of IOutput objects representing all outputs of all all output controllers in the cabinet. More... | |
Out.OutputControllerList | OutputControllers [get, set] |
List of IOutputController objects representing the output controllers in the cabinet. More... | |
The Cabinet object describes the parts of a pinball cabinet (toys, outputcontrollers, outputs and more).
Definition at line 21 of file Cabinet.cs.
|
inline |
Initializes a new instance of the Cabinet class.
Definition at line 300 of file Cabinet.cs.
|
inline |
This method finds all classes implementing the IAutoConfigOutputController interface and uses the member of this interface to detect and configure IOutputController objects automatically.
Definition at line 26 of file Cabinet.cs.
|
inline |
Finishes the cabinet
Definition at line 285 of file Cabinet.cs.
|
inlinestatic |
Instanciates a Cabinet object from a cabinet configuration in a XML string.
ConfigXml | XML string |
Definition at line 234 of file Cabinet.cs.
|
inlinestatic |
Instanciates a Cabinet object from a cabinet configuration in a XML file.
FileName | Name of the XML file. |
Definition at line 182 of file Cabinet.cs.
|
inlinestatic |
Instanciates a Cabinet object from a cabinet configuration in a XML file.
CabinetConfigFile | FileInfo object for the config file. |
Definition at line 224 of file Cabinet.cs.
|
inline |
Returns a serialized XML representation of the cabinet configuration.
Definition at line 149 of file Cabinet.cs.
|
inline |
Initializes the cabinet.
Definition at line 260 of file Cabinet.cs.
|
inline |
Serializes the cabinet configuration to a XML file.
FileName | Name of the XML file. |
Definition at line 171 of file Cabinet.cs.
|
inlinestatic |
Tests a cabinet config in a XML file.
FileName | Name of the file. |
Definition at line 204 of file Cabinet.cs.
|
inline |
Calls the update method for toys and output controllers in the cabinet
Definition at line 274 of file Cabinet.cs.
|
getset |
Gets or sets a value indicating whether auto config is enabled.
If auto config is enabled, the framework tries to detect and configure IOutputController objects and related IToy objects automatically.
true
enables auto config, false
disables auto config.
Definition at line 110 of file Cabinet.cs.
|
getset |
Gets or sets the filename from which the cabiet configuration was loaded.
The filename of the cabinet configuration file.
Definition at line 67 of file Cabinet.cs.
|
getset |
List of Color objects used to set colors for toys.
Definition at line 94 of file Cabinet.cs.
|
getset |
Name of the Cabinet.
Definition at line 58 of file Cabinet.cs.
|
getset |
List of IOutputController objects representing the output controllers in the cabinet.
Definition at line 137 of file Cabinet.cs.
|
get |
List of IOutput objects representing all outputs of all all output controllers in the cabinet.
Definition at line 122 of file Cabinet.cs.
|
getset |
Gets the Pinball object to which the Cabinet pobject belongs.
The pinball object.
Definition at line 52 of file Cabinet.cs.
|
getset |
List of IToy objects describing the toys in the cabinet.
Definition at line 76 of file Cabinet.cs.