Пример #1
0
 private void OnPluginUnloaded(PointBlankPlugin plugin)
 {
     foreach (Type _class in plugin.GetType().Assembly.GetTypes())
     {
         SaveInterface(_class);
     }
 }
 private void OnPluginLoaded(PointBlankPlugin plugin)
 {
     foreach (Type tClass in plugin.GetType().Assembly.GetTypes())
     {
         if (tClass.IsClass)
         {
             LoadCommand(tClass);
         }
     }
 }
Пример #3
0
 private void OnPluginLoaded(PointBlankPlugin plugin)
 {
     foreach (Type class_type in plugin.GetType().Assembly.GetTypes())
     {
         LoadService(class_type);
     }
     foreach (PointBlankService ser in _tempServices.OrderBy(a => a.LaunchIndex))
     {
         RunService(ser);
     }
     _tempServices.Clear();
 }
Пример #4
0
 private void OnPluginLoaded(PointBlankPlugin plugin)
 {
     foreach (Type tClass in plugin.GetType().Assembly.GetTypes())
     {
         if (tClass.IsClass)
         {
             foreach (MethodInfo method in tClass.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance))
             {
                 LoadDetour(method);
             }
         }
     }
 }
 private void OnPluginUnloaded(PointBlankPlugin plugin)
 {
     foreach (CommandWrapper wrap in Commands.Where(a => a.Class.DeclaringType.Assembly == plugin.GetType().Assembly))
     {
         Commands.Remove(wrap);
     }
     UniConfig.Save();
 }
Пример #6
0
 private void OnPluginUnloaded(PointBlankPlugin plugin)
 {
     foreach (KeyValuePair <DetourAttribute, DetourWrapper> kvp in Detours.Where(a => a.Key.Method.DeclaringType.Assembly == plugin.GetType().Assembly&& !a.Value.Local))
     {
         kvp.Value.Revert();
         Detours.Remove(kvp.Key);
     }
 }