B2S.Server Plugin Interface
Interface library for B2S.Server plugins
|
Go to: Overview |
Interface for plugins for the B2S Server.
All plugins must implement this interface to be recognized by the B2S Server. In addition they also have to export the class implementing the interface using the following attribute [Export(typeof(B2SServerPluginInterface.IDirectPlugin))] in c# or <Export(GetType(B2SServerPluginInterface.IDirectPlugin))> for VB.net. Please refer to the documentation of the B2S.Server Sample Plugin Project (http://directoutput.github.com/B2SServerSamplePlugin/) for more information on plugins.
More...
Public Member Functions | |
void | PluginInit (string TableFilename, string RomName="") |
This method initalizes the plugin. It is the first plugin method beeing called after the plugin has been instanciated. More... | |
void | PluginFinish () |
Finishes the plugin. This is the last method called, before a plugin is discared. This method is also called, after a undhandled exception has occured in a plugin. More... | |
void | DataReceive (char TableElementTypeChar, int Number, int Value) |
This method is called, when new data from Pinmame or the B2SSetData command for EMTables is available. More... | |
Properties | |
string | Name [get] |
Gets the name of the plugin. It is recommended to add the version/build number of your plugin to the name, so different version can easily be recognized be the end user. More... | |
Interface for plugins for the B2S Server.
All plugins must implement this interface to be recognized by the B2S Server. In addition they also have to export the class implementing the interface using the following attribute [Export(typeof(B2SServerPluginInterface.IDirectPlugin))] in c# or <Export(GetType(B2SServerPluginInterface.IDirectPlugin))> for VB.net. Please refer to the documentation of the B2S.Server Sample Plugin Project (http://directoutput.github.com/B2SServerSamplePlugin/) for more information on plugins.
Definition at line 11 of file IDirectPlugin.cs.
void B2SServerPluginInterface.IDirectPlugin.DataReceive | ( | char | TableElementTypeChar, |
int | Number, | ||
int | Value | ||
) |
This method is called, when new data from Pinmame or the B2SSetData command for EMTables is available.
TableElementTypeChar | Char representing the table element type (S=Solenoid, W=Switch, L=Lamp, M=Mech, G=GI, E=EMTable, D=Led, ?=Unknown table element type). |
Number | The number of the table element. |
Value | The value of the table element. |
void B2SServerPluginInterface.IDirectPlugin.PluginFinish | ( | ) |
Finishes the plugin.
This is the last method called, before a plugin is discared. This method is also called, after a undhandled exception has occured in a plugin.
void B2SServerPluginInterface.IDirectPlugin.PluginInit | ( | string | TableFilename, |
string | RomName = "" |
||
) |
This method initalizes the plugin.
It is the first plugin method beeing called after the plugin has been instanciated.
TableFilename | The filename of the table. |
RomName | Name of the rom (optional). |
|
get |
Gets the name of the plugin.
It is recommended to add the version/build number of your plugin to the name, so different version can easily be recognized be the end user.
The name of the plugin.
Definition at line 34 of file IDirectPlugin.cs.