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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 378 by william, Tue Jun 19 07:56:36 2012 UTC revision 389 by william, Tue Jun 19 12:47:26 2012 UTC
# Line 18  namespace RomCheater.PluginFramework.Int Line 18  namespace RomCheater.PluginFramework.Int
18      #endregion      #endregion
19      #endregion      #endregion
20      #region IConfigPlugin      #region IConfigPlugin
21      public interface IConfigPlugin : IPluginBase      public interface IConfigPlugin : IPluginBase, IAcceptsReadOnlyMemoryRange
22      {      {
23          List<ProcContainer> ValidProcessesForPlugin { get; }          List<ProcContainer> ValidProcessesForPlugin { get; }
24      }      }
# Line 65  namespace RomCheater.PluginFramework.Int Line 65  namespace RomCheater.PluginFramework.Int
65      #endregion      #endregion
66      public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }      public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }
67      public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }      public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }
68    
69        public class AcceptedProcessAndConfig<TProcess> : IAcceptsProcessAndConfig<TProcess> where TProcess : Process
70        {
71            public AcceptedProcessAndConfig() : this(null, default(TProcess)) { }
72            public AcceptedProcessAndConfig(IConfigPlugin config, TProcess process) { AcceptedPlugin = config; AcceptedProcess = process; }
73            #region IAcceptsProcessAndConfig<TProcess> members
74            #endregion
75    
76            #region IAcceptsPlugin<IConfigPlugin> Members
77            public IConfigPlugin AcceptedPlugin { get; set; }
78            #endregion
79    
80            #region IAcceptsProcess<TProcess> Members
81            public TProcess AcceptedProcess { get; set; }
82            #endregion
83        }
84        public class AcceptedProcessAndConfig : IAcceptsProcessAndConfig
85        {
86            public AcceptedProcessAndConfig() : this(null, null) { }
87            public AcceptedProcessAndConfig(IConfigPlugin config, Process process) { AcceptedPlugin = config; AcceptedProcess = process; }
88    
89            #region IAcceptsProcess<Process> Members
90            public Process AcceptedProcess { get; set; }
91            #endregion
92            #region IAcceptsPlugin<IConfigPlugin> Members
93            public IConfigPlugin AcceptedPlugin { get; set; }
94            #endregion
95        }
96    
97      public interface IAcceptsProcessPID      public interface IAcceptsProcessPID
98      {      {
99          int ProcessPID { get; set; }          int ProcessPID { get; set; }
# Line 74  namespace RomCheater.PluginFramework.Int Line 103  namespace RomCheater.PluginFramework.Int
103          uint MemoryRangeStart { get; set; }          uint MemoryRangeStart { get; set; }
104          uint MemoryRangeSize { get; set; }          uint MemoryRangeSize { get; set; }
105      }      }
106        public interface IAcceptsReadOnlyMemoryRange
107        {
108            uint MemoryRangeStart { get; }
109            uint MemoryRangeSize { get; }
110        }
111      public interface IOutputsData<TData> { TData Data { get; } }      public interface IOutputsData<TData> { TData Data { get; } }
112      public interface ISearchInProgress { bool SearchInProgess { get; } }      public interface ISearchInProgress { bool SearchInProgess { get; } }
113  }  }

Legend:
Removed from v.378  
changed lines
  Added in v.389

  ViewVC Help
Powered by ViewVC 1.1.22