DirectOutput
DirectOutput framework R3 for virtual pinball cabinets.
Loading...
Searching...
No Matches
DirectOutput.Cab.Toys.ToyBase Class Referenceabstract

Base class for IToy implementations. More...

Inheritance diagram for DirectOutput.Cab.Toys.ToyBase:
Collaboration diagram for DirectOutput.Cab.Toys.ToyBase:

Public Member Functions

void Init (Cabinet Cabinet)
 Must initialize the IToy. Method must be overwritten.
void Reset ()
 Must reset the state of the IToy to its default state (off). Method must be overwritten.
virtual void Finish ()
 Must finish the IToy, do all necessary clean up work and reset to IToy to its default state (off). Method is virtual and can be overwritten.

Additional Inherited Members

Protected Member Functions inherited from DirectOutput.General.Generic.NamedItemBase
virtual void AfterNameChange (string OldName, string NewName)
virtual void BeforeNameChange (string OldName, string NewName)
virtual void OnPropertyChanged (string propertyName)
virtual void OnPropertyChanging (string propertyName)
Properties inherited from DirectOutput.General.Generic.NamedItemBase
string Name [get, set]
 Name of the named item.
Triggers BeforeNameChange before a new Name is set.
Triggers AfterNameChanged after a new name has been set.
Properties inherited from DirectOutput.Cab.Toys.IToy
new string Name [get, set]
 Gets or sets the Name of the IToy.
Events inherited from DirectOutput.General.Generic.NamedItemBase
EventHandler< NameChangeEventArgsAfterNameChanged
 Event is fired after the value of the property Name has changed.
EventHandler< NameChangeEventArgsBeforeNameChanged
 Event is fired before the value of the property Name is changed.
PropertyChangedEventHandler PropertyChanged
PropertyChangingEventHandler PropertyChanging
Events inherited from DirectOutput.General.Generic.INamedItem
EventHandler< NameChangeEventArgsBeforeNameChanged
 Occurs before the name of the item changes.
EventHandler< NameChangeEventArgsAfterNameChanged
 Occurs when after the name of the item has changed.

Detailed Description

Base class for IToy implementations.

Member Function Documentation

◆ Finish()

virtual void DirectOutput.Cab.Toys.ToyBase.Finish ( )
virtual

Must finish the IToy, do all necessary clean up work and reset to IToy to its default state (off). Method is virtual and can be overwritten.

Implements DirectOutput.Cab.Toys.IToy.

Reimplemented in DirectOutput.Cab.Toys.Hardware.Motor, DirectOutput.Cab.Toys.Layer.AnalogAlphaToy, DirectOutput.Cab.Toys.Layer.RGBAToy, DirectOutput.Cab.Toys.LWEquivalent.LedWizEquivalent, and DirectOutput.Cab.Toys.Virtual.ToyGroupBase< MatrixElementType >.

◆ Init()

void DirectOutput.Cab.Toys.ToyBase.Init ( Cabinet Cabinet)
abstract

Must initialize the IToy. Method must be overwritten.

Parameters
CabinetCabinet object to which the IToy belongs.

Implements DirectOutput.Cab.Toys.IToy.

◆ Reset()

void DirectOutput.Cab.Toys.ToyBase.Reset ( )
abstract

Must reset the state of the IToy to its default state (off). Method must be overwritten.

Implements DirectOutput.Cab.Toys.IToy.


The documentation for this class was generated from the following file:
  • D:/a/DirectOutput/DirectOutput/DirectOutput/Cab/Toys/ToyBase.cs