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); } } }
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(); }
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(); }
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); } }