Exemplo n.º 1
0
 public static void Dispose()
 {
     if (NexusInstalled)
     {
         NexusSupport.Dispose();
     }
 }
Exemplo n.º 2
0
        private static void AquireNexus(ITorchPlugin Plugin)
        {
            Type NexusMain = DeclareInstalledPlugin(Plugin);
            Type ReflectedServerSideAPI = NexusMain?.Assembly.GetType("Nexus.API.PluginAPISync");

            if (ReflectedServerSideAPI == null)
            {
                return;
            }


            ReflectedServerSideAPI.GetMethod("ApplyPatching", BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, new object[] { typeof(NexusAPI), "QuantumHangar" });

            NexusSupport.Init();
            NexusInstalled = true;
        }