Example #1
0
        public int Register(ref Kyeer_Plugin_ID ID)
        {
            Kyeer_Plugin_ID newID = ID;

            newID.Status = Kyeer_Plugin_Status.NotActive;
            ID           = newID;
            return(1);
        }
Example #2
0
        public int Register(ref Kyeer_Plugin_ID ID)
        {
            Kyeer_Plugin_ID newID = ID;

            newID.Authorized_keys.Add("Plugin_SharedTest");
            newID.Initialized = true;
            newID.Status      = Kyeer_Plugin_Status.NotActive;
            ID = newID;
            return(1);
        }
Example #3
0
 public void DisablePlugin(string Name)
 {
     if (!CheckKey(Name))
     {
         return;
     }
     if (!IDs[Name].Initialized)
     {
         return;
     }
     if (IDs[Name].Status != Kyeer_Plugin_Status.NotActive)
     {
         Objs[Name].Disable();
         Kyeer_Plugin_ID newID = IDs[Name];
         newID.Status = Kyeer_Plugin_Status.NotActive;
         IDs[Name]    = newID;
     }
 }
Example #4
0
 public void EnablePlugin(string Name)
 {
     if (!CheckKey(Name))
     {
         return;
     }
     if (!IDs[Name].Initialized)
     {
         Objs[Name].Initialization();
     }
     System.Diagnostics.Debug.Print(IDs[Name].Status.ToString());
     if (IDs[Name].Status == Kyeer_Plugin_Status.NotActive)
     {
         Objs[Name].Enable();
         Kyeer_Plugin_ID newID = IDs[Name];
         newID.Status = Kyeer_Plugin_Status.Active;
         IDs[Name]    = newID;
     }
 }