Fix mistake

This commit is contained in:
Stone-Red-Code
2021-08-14 21:33:24 +02:00
parent f05b5783ba
commit e89b2981e7
172 changed files with 751 additions and 2299 deletions
+6 -21
View File
@@ -3,16 +3,10 @@ using System.Drawing;
namespace DesktopMagicPluginAPI
{
/// <summary>
/// The plugin class
/// </summary>
public abstract class Plugin
{
private IPluginData application = null;
/// <summary>
/// Informations about the main application
/// </summary>
public IPluginData Application
{
get => application;
@@ -29,29 +23,20 @@ namespace DesktopMagicPluginAPI
}
}
/// <summary>
/// Gets or sets the interval, expressed in milliseconds, at which to call the <see cref="Main"/> method.
/// </summary>
public virtual int UpdateInterval { get; set; } = 1000;
/// <summary>
/// Occurs when the <see cref="UpdateInterval"/> elapses.
/// </summary>
/// <returns></returns>
public virtual string[,] Inputs { get; set; } = new string[0, 0];
public abstract Bitmap Main();
/// <summary>
/// Occurs when the window is clicked by the mouse.
/// </summary>
/// <param name="position"></param>
public virtual void OnOptionChanged(int optionIndex)
{
}
public virtual void OnMouseClick(Point position)
{
}
/// <summary>
/// Occurs when the mouse pointer is moved over the control.
/// </summary>
/// <param name="position"></param>
public virtual void OnMouseMove(Point position)
{
}