/[RomCheater]/trunk/RomCheater.PluginFramework/Core/PluginBase.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/PluginBase.cs

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

--- trunk/RomCheater.PluginFramework/Core/PluginBase.cs	2013/06/17 07:31:15	679
+++ trunk/RomCheater.PluginFramework/Core/PluginBase.cs	2013/06/17 08:03:34	680
@@ -3,6 +3,8 @@
 using System.Linq;
 using System.Text;
 using RomCheater.PluginFramework.Interfaces;
+using RomCheater.PluginFramework.Events;
+using System.Diagnostics;
 
 namespace RomCheater.PluginFramework.Core
 {
@@ -23,5 +25,33 @@
         {
             return string.Format("{0} [{1}]", Name, ID.ToString());
         }
+
+        private IPEDData _peData;
+        protected IPEDData peData { get { return _peData; } }
+        public void SetPEViewerData(IPEDData peData)
+        {
+            _peData = peData;
+        }
+
+        private Process _AcceptedProcess;
+        protected Process AcceptedProcess { get { return _AcceptedProcess; } }
+        public void SetAcceptedProcess(Process proc)
+        {
+            _AcceptedProcess = proc;
+        }
+
+        private IConfigPlugin _AcceptedConfig;
+        protected IConfigPlugin AcceptedConfig { get { return _AcceptedConfig; } }
+        public void SetAcceptedConfig(IConfigPlugin config)
+        {
+            _AcceptedConfig = config;
+        }
+
+
+        public void SetAcceptedProcessAndConfig(IAcceptsProcessAndConfig iapc)
+        {
+            SetAcceptedConfig(iapc.AcceptedPlugin);
+            SetAcceptedProcess(iapc.AcceptedProcess);
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22