Game Development Reference
In-Depth Information
Figure 38.1 shows an example of a plugin browser. The Component property describes
the short name of the plugin, while the Description property provides a more
lengthy description of what the plugin actually does.
Figure 38.1 Screenshot of the plugin browser example.
The following code is for the Calculator Subtraction Plugin shown in Figure 38.1.
Notice the PluginAttribute decoration.
namespace Plugin.CalculatorPlugin
{
using API;
using ExampleInterfaces;
[Plugin(Component = “Calculator Subtraction Plugin”,
Description = “This plugin handles the subtraction operator”)]
public class CalculatorSubtraction : MarshalByRefObject,
IPlugin,
ICalculatorPlugin
{
public void Initialize()
{
}
public void Release()
{
Search Nedrilad ::




Custom Search