/[RomCheater]/trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs
ViewVC logotype

Annotation of /trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 378 - (hide annotations) (download)
Tue Jun 19 07:56:36 2012 UTC (9 years, 1 month ago) by william
File size: 2723 byte(s)
use uint instead of int for memory addresses

1 william 83 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using System.Diagnostics;
6 william 88 using RomCheater.PluginFramework.Core;
7 william 83
8     namespace RomCheater.PluginFramework.Interfaces
9     {
10 william 94 #region IPluginBase
11     public interface IPluginBase : IPluginName, IPluginDescription, IPluginID, IToString, IPluginRefresh { }
12     #region IPluginBase SubMembers
13     public interface IToString { string ToString(); }
14     public interface IPluginName { string Name { get; } }
15     public interface IPluginDescription { string Description { get; } }
16     public interface IPluginID { Guid ID { get; } }
17 william 329 public interface IPluginRefresh { void Reload(); void Reload(bool silent); }
18 william 83 #endregion
19 william 94 #endregion
20 william 83 #region IConfigPlugin
21     public interface IConfigPlugin : IPluginBase
22     {
23 william 88 List<ProcContainer> ValidProcessesForPlugin { get; }
24 william 83 }
25     #endregion
26     #region IInputPlugin
27     public interface IInputPlugin : IPluginBase
28     {
29     }
30     #endregion
31     #region IWindowPlugin
32     public interface IWindowPlugin : IPluginBase
33     {
34     }
35     #endregion
36     #region IPluginLoader
37     public interface IPluginLoader
38     {
39     void LoadPlugins();
40 william 366 void LoadPlugins(bool silent);
41 william 83 List<IConfigPlugin> LoadedConfigPlugins { get; }
42     List<IInputPlugin> LoadedInputPlugins { get; }
43     List<IWindowPlugin> LoadedWindowPlugins { get; }
44 william 87
45     IConfigPlugin GetConfigPlugin(string t);
46     IInputPlugin GetInputPlugin(string t);
47     IWindowPlugin GetWindowPlugin(string t);
48    
49 william 86 string ToString();
50 william 83 }
51     #endregion
52 william 234 #region AcceptsPlugin
53 william 228 public interface IAcceptsPlugin<TPlugin>
54     where TPlugin : IPluginBase
55 william 153 {
56 william 228 TPlugin AcceptedPlugin { get; set; }
57 william 153 }
58 william 357 public interface IAcceptsConfig : IAcceptsPlugin<IConfigPlugin> { }
59     public interface IAcceptsProcess : IAcceptsProcess<Process> { }
60 william 234 public interface IAcceptsProcess<TProcess>
61     where TProcess : Process
62 william 153 {
63 william 234 TProcess AcceptedProcess { get; set; }
64 william 153 }
65 william 234 #endregion
66 william 357 public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }
67     public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }
68 william 196 public interface IAcceptsProcessPID
69     {
70     int ProcessPID { get; set; }
71     }
72 william 198 public interface IAcceptsMemoryRange
73     {
74 william 378 uint MemoryRangeStart { get; set; }
75 william 287 uint MemoryRangeSize { get; set; }
76 william 198 }
77 william 228 public interface IOutputsData<TData> { TData Data { get; } }
78     public interface ISearchInProgress { bool SearchInProgess { get; } }
79 william 83 }

  ViewVC Help
Powered by ViewVC 1.1.22