Example #1
0
 /// <summary>
 /// Calls a hook
 /// </summary>
 /// <param name="hookname"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 public object CallHook(string hookname, params object[] args)
 {
     if (RootPluginManager == null)
     {
         return(null);
     }
     return(RootPluginManager.CallHook(hookname, args));
 }
Example #2
0
 /// <summary>
 /// Calls a hook
 /// </summary>
 /// <param name="hookname"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 public object CallHook(string hookname, params object[] args) => RootPluginManager?.CallHook(hookname, args);